POV-Ray : Newsgroups : povray.general : Status of Moray? : Re: New SDL for POVRay Server Time
17 Jul 2025 02:26:59 EDT (-0400)
  Re: New SDL for POVRay  
From: Patrick Elliott
Date: 2 Oct 2007 23:40:09
Message: <MPG.216cbcd98e9e865198a035@news.povray.org>
In article <47024d79$1@news.povray.org>, 
nic### [at] gmailisthebestcom says...

> > And its method of 
> > representing arrays allow you to *literally* drop complex data 
> > structures in to the array, for immediate use. For example, in the 
> > client I use it in, if you want to get data on something as simple as a
 
> > line of text, you need to just push the data into a table in Lua, then
 
> > access it like an array. The method for transferring such data "into"
 
> > Lua is fairly trivial. Other languages *can't* handle the transfer of
 
> > such structured data. They are forced to rely on creating multiple 
> > arrays, to hold each subtype of data. So while Lua uses a single table
 
> > that looks like:
> > 
> > mytable (position)
> >   \---Letter
> >   \---Font
> >   \---Color
> >   \---Ect.
> > 
> > In *any* other language you need to do something like:
> > 
> > dim letter()
> > dim font()
> > dim color()
> > dim etc()
> > 
> > Then load **each** of those independently.
> 
> Umm... Isn't that how things work on *any* loosely-typed language?
> 
> var arr = [123, [12,34], "foo", /\s+public ?(.*)/g, new Sphere(1,2,3)];
> 
> A valid Javascript array containing a number, another array, a string, a
 
> regular expression, and a Sphere (provided that the Sphere object was 
> defined).
> 
Well, all I know is that it wasn't, for what ever reason, possible with 
the client. That *may* be due to the fact that Java is *not* normally 
that loosely typed, or that some serious problem existed in ActiveScript 
which seriously fracked it (since it relies a lot of that for every 
language except Lua. Though, mind you, half the ActiveScript languages 
seem to not follow spec anyway and suffer from bloody silly 
inconsistencies even in how you instance them, never mind get them to do 
anything after they are linked.)

-- 
void main () {

    call functional_code()
  else
    call crash_windows();
}

<A HREF='http://www.daz3d.com/index.php?refid=16130551'>Get 3D Models,
 
3D Content, and 3D Software at DAZ3D!</A>


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.