[haXe] default parameters question

Yariv Sadan yarivvv at gmail.com
Fri Apr 14 17:18:18 CEST 2006


On 4/14/06, Nicolas Cannasse <ncannasse at motion-twin.com> wrote:
> > 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.

Do you think it would be reasonable to propagate this behaviour to all
classes extending flash.* classes?

>
> > 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
>
>
> --
> haXe - an open source web programming language
> http://haxe.org
>



More information about the Haxe mailing list