There's nothing wrong with it. However I wasn't asking how to write a function. My post was asking if I was wrong about passing in args as a short handed struct. And apparently I'm wrong with regards to cf<9.
On Tue, Sep 14, 2010 at 8:06 PM, rex <[email protected]> wrote: > > 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:337028 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

