Quote:
Originally Posted by Stefan
Lua is much much simplier than languages like Graal Script, Flash etc., and is easier to optimize. However there are few things that make it not good for our use: the syntax is very different to C/C++/Java/JavaScript/Flash/Graal Script, and of course most Graal stuff is not existing or at least not in the extend we are using them (join/leave classes, sleep/waitfor, variable scope, dynamic allocation of variables, automatic event binding etc. etc.). So it's quite interesting, but not a drop-in replacement. If we ever switch to another language or system then only for speed (e.g. a just-in-time compiler which exist for all platforms, including iphone, llvm might be the light at the end of the tunnel) or for better compatibility with code from other platforms, including Flash and Java programs.
|
I think a GScript's problem is consistency. It has alot of quirks like I dislike:
- Dynamic variables are case-sensitive, yet static variables aren't.
- Object-oriented design, yet lack of actual user-defined classes.
- A whole range of global variables and functions, yet an inability to create your own.
I think we need a GS3 which is a more refined an object-oriented version of GS2, with full support for classes and stuff like that. For example, providing a script for a weapon should involve subclassing the weapon class and overriding the event functions in the weapon class.
Quote:
Originally Posted by Stefan
All variables are stored in hash tables yes.
"unknown_object"s are mainly GUI objects or so which don't have a name. They still exist in the global variable space though.
|