Yes, it's possible.

----- Original Message ----- 
From: "Derek Vadneau" <[EMAIL PROTECTED]>
To: "flexcoders" <[email protected]>
Sent: Wednesday, January 11, 2006 5:01 PM
Subject: [flexcoders] Named parameters in AS3?


Does anyone know if it's possible to use named parameters in AS3?

If not, is it a feature that could be put into AS3?

The idea would be to be able to submit parameters like:
myFunction(target=myClip, url="/test.swf", preload=true);

Currently the only two options that I know of are passing a generic
object, or passing an instantiated class, thereby keeping
type-checking.

The goal is to provide methods the ability to have documented
parameters, optional parameters in any order, all while keeping
compile-time type-checking.

If the parameters are not used in the named syntax, then the compiler
would default back to ordered parameters, like we have now.

Anyone care to comment on if this is available and possibly why you
would/wouldn't want it in AS3?


Derek Vadneau




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links



 




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to