Any possibility to share AngelScript changes?

Have any technical questions or suggestions? Post them here.

Any possibility to share AngelScript changes?

Postby amerkoleci » Sun Dec 30, 2012 11:23 am

Would be possible to share changes you've made to angel script, for example "foreach" and "event" support?

Posts: 1
Joined: Sat Dec 29, 2012 3:02 pm

Re: Any possibility to share AngelScript changes?

Postby ErikB » Tue Jan 01, 2013 2:41 pm

The additions are fairly trivial. They're not exactly extensions of the Angelscript language.

Foreach is a very simple preprocessor search and replace where I change the foreach statement to a normal for-loop that the compiler can understand. It assumes whatever value you put in has a .length() function. So all I'm doing is rewriting the script before passing it to the Angelscript engine.

In the case of events it generates a normal function header. The difference is that Novelty remembers the name/id of the function so it can call it later by the engine.
User avatar
Novelty developer
Posts: 1209
Joined: Wed Jul 16, 2008 3:58 pm

Return to Support & Development

Who is online

Users browsing this forum: No registered users and 2 guests