why use a struct?  what's wrong with

        myFunction(name="mike", likes="beer,soccer,women");

if you want it shorter, then don't name the arguments, just do name and 
likes in order:

        myFunction("mike", "beer,soccer,women");


Michael Grant wrote:
> Calling a function from within the same component. For some reason I was
> sure that you could do this this way:
>
> <cfscript>
>
> myFunction( {name="mike", likes="beer,soccer,women"} );
>
> </cfscript>
>
> Am I crazy?
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:337024
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to