[haXe] default parameters question
Yariv Sadan
yarivvv at gmail.com
Fri Apr 14 15:48:38 CEST 2006
Hi list,
I have a couple of questions about the code below:
1. Given that haxe doesn't accept default parameters to functions, how
come the call to myClip.lineStyle(1) works? Is this a bug?
2. It would be very nice to have default parameters (I saw the
proposal on the website). Is this feature planned?
class Application extends MovieClip {
function new() {
lineStyle(1); // compiler error
lineStyle(1, null,null,null,null,null,null,null); //no complaints
var mc = this;
mc.lineStyle(1); // compiler error
myClip = this;
myClip.lineStyle(1); //no complaints!!!
}
private static var myClip:MovieClip;
}
Thanks!
Yariv
More information about the Haxe
mailing list