>I take it you can load the function in to memory like using an init method
>on a CFC... by calling the function with out the the "()" and not passing it
>any vars?

Kind of, though I wouldn't make that comparison. My theory is less
than solid here so please someone patch where it is mistaken:

When ColdFusion processes a 'page' with a udf (either cffunction or
scripted 'function'); the function is parsed and created as an
*object* in memory (a special function type object). By 'calling' the
function without the () you are actually referencing the object itself
rather than invoking the function that it represents.

So, the following code just makes the application.udfs.MyFunction1
variable a reference to the function named 'MyFunction1':

<cfset application.udfs.MyFunction1 = MyFunction1>

Make any sense?

> Well if you're bonkers, I'm bonkers too!

I already know you're bonkers AdeyAdeyAdeAde ;)

Dominic

-- 
Blog it up: http://fusion.dominicwatson.co.uk

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:305673
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to