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 537166
To view parent comment, click here.
To read all comments associated with this story, please click here.
RE[2]: Comment by some1
by some1 on Mon 1st Oct 2012 12:30 UTC in reply to "RE: Comment by some1"
some1
Member since:
2010-10-05

On the plus side, I don't see anything from PHP in ObjectScript. Looks like a slightly messed up Lua with JS syntax.

Reply Parent Score: 2

RE[3]: Comment by some1
by lucas_maximus on Tue 2nd Oct 2012 04:35 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