Here's another useless question. When the following UDF is invoked, it
will return a query. Inside the UDF, the query is being assigned to
the local scope so theoretically it should 'die' when the UDF is
finished running. But it's returning a complex datatype, which should
be passed by reference. Is the query being returned passed by
reference or by value. I'm assuming value because the reference should
'die' with the UDF.

<cffunction name="test" returntype="any">
        <cfquery name="local.manga" datasource="mangadb">
                select top 1 *
                from titles
        </cfquery>      

        <cfreturn manga>
</cffunction>


--
Michael Dinowitz

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331508
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to