Quote: Original post by _matthias_
But this double registrating would be autmatically made by your template construction, doesn't it?
Actually not. If you look carefully, you'll see that the registering the derived class first calls the function for registering the base class' methods, and then only register the new methods introduced by the derived class. It doesn't register the methods it inherits more than once.
Quote: Original post by _matthias_
Are you of the opinion, that all these could be possible with Angelscript ?
Yes, definitely. And also quite easily. SiCrane already showed how to enumerate the properties of a class, and I'll also help you clear up any questions you might have.
Be sure to let me know if you need some feature that is not available in AngelScript, and I'll see what I can do to add it in a future release.
Quote: Original post by _matthias_
By the way another question to Angelscipt:
How fast could Angelscript be in calling highly frequently a simple function like "float wave(float x, float y) { return sin(sqrt(x^2+y^2)); }" , which is used in this sample ( by the Scriptlanguage Lua):
Makes it sense to animate this with angelscript ?
Lua has more people working on it, and has also been around for a much longer time, but I'm willing to bet that even if AS is not currently as fast or faster than Lua in this example, I can easily optimize it to be so. I'm not saying this because I think I'm better than the developers of Lua (which would probably not be true), but rather that AS allows it to be executed much faster due to being statically typed, rather than dynamically typed. There are just less things to do at run time. (LuaJIT is another matter though, as it will produce machine code rather than byte code)
Please let me know if you find that AngelScript is slower, and I'll put in an effort to add some more optimizations.
I look forward to seeing more on your work with AngelScript.