No Comments
AS3, IT
2011 Feb 12
[AS3] Overloading methods
http://flexblog.faratasystems.com/2006/10/16/actionscript-3-overloading-constructors-with-rest
Have a look to this article about rest parameter. It is used to simulate method overloading. If you are from C++ / Java worlds, it will remind you variadic methods.
Like some AS3 tricks (e.g.: Singleton), this one is particularly hacky… ActionScript would really need to natively include this kind of features.