[haXe] default parameters question
Nicolas Cannasse
ncannasse at motion-twin.com
Fri Apr 14 16:33: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?
This is a special case for flash.* API : all parameters are optional.
> 2. It would be very nice to have default parameters (I saw the
> proposal on the website). Is this feature planned?
Not right now.
I'm still thinking about the best way to add this to the language.
BTW I just updated the proposal page on the haXe Wiki with current
compiler CVS status.
Nicolas
More information about the Haxe
mailing list