Remember, you can always do:

<CFSET Res = Foo(Duplicate(st))>

or

<CF_Foo Input="#Duplicate(st)#">

=======================================================================
Raymond Camden, Principal Spectra Compliance Engineer for Macromedia

Email    : [EMAIL PROTECTED]
Yahoo IM : morpheus

"My ally is the Force, and a powerful ally it is." - Yoda 

> -----Original Message-----
> From: Michael Dinowitz [mailto:[EMAIL PROTECTED]] 
> Sent: Monday, September 10, 2001 3:44 PM
> To: CF-Talk
> Subject: RE: Passing variables in UDF
> 
> 
> While I can understand this in a UDF, I just can't understand 
> why this is 
> true for a custom tag. I just tried it out and an array is 
> passed by value 
> to a custom tag. A structure is passed by reference. This 
> totally breaks 
> the paradigm of custom tags being "totally independent processes".
> 
> At 03:25 PM 9/10/01, you wrote:
> > > Are variables passed by reference or by value in CF UDFs?
> >
> >Queries, structures, and variables created using CFOBJECT 
> are passed by 
> >reference. Other variables are passed by value. This is true whether 
> >passing them to UDFs or custom tags or whatever, as far as I 
> can tell.
> >
> >Dave Watts, CTO, Fig Leaf Software
> >http://www.figleaf.com/
> >voice: (202) 797-5496
> >
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to