Linked by Thom Holwerda on Sun 30th Sep 2012 20:15 UTC, submitted by MOS6510
General Development "The ObjectScript is a new programing language that mixes benefits of JavaScript, Lua, and PHP. The ObjectScript has syntax from JavaScript, multiple results from Lua, OOP from PHP and much more."
Thread beginning with comment 537252
To view parent comment, click here.
To read all comments associated with this story, please click here.
RE[3]: Comment by some1
by lucas_maximus on Tue 2nd Oct 2012 04:35 UTC in reply to "RE[2]: Comment by some1"
lucas_maximus
Member since:
2009-08-18

The class constructor destructor syntax is exactly the same.

Reply Parent Score: 2

RE[4]: Comment by some1
by some1 on Tue 2nd Oct 2012 05:46 in reply to "RE[3]: Comment by some1"
some1 Member since:
2010-10-05

I did not find any mentions of destructors, and the syntax to construct an object is different (PHP uses new keyword, OS doesn't), so I presume you just mean that constructor function is called __construct. That wouldn't be the first time lua-based object model calls it that. E.g.
https://gist.github.com/672338
http://www.jc-mp.com/forums/index.php/topic,332.msg2370.html#msg237...

On the other hand, compare this section of lua documentation to OS page:
http://www.lua.org/pil/3.6.html

Reply Parent Score: 2

RE[5]: Comment by some1
by lucas_maximus on Tue 2nd Oct 2012 07:34 in reply to "RE[4]: Comment by some1"
lucas_maximus Member since:
2009-08-18

I didn't see the destructor.

But the syntax looked similar enough for me to mistake them to be the same.

Fair point though.

Reply Parent Score: 2