🎉 Celebrating 25 Years of GameDev.net! 🎉
Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!
default values for functions ?
andreas, i would like to know if you have any plans on adding default parameter values to function, something like what c and c++ let you do... would a very good addition something like:
engine->RegisterObjectMethod("MyObject", "void doStuff(int=1,float=0.0)", ...
to let you use functions in script like
o.doStuff();
o.doStuff(100);
or
o.doStuff(100,2.0);
what u think ?
greetz,
lucio
Some day I'm sure I'll add this feature. But there is so much else that must be done first that it will be a long time before I get to that.
Regards,
Andreas
Regards,
Andreas
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement