>>>. 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.
  ------

Yeah that is what I thought you were saying.

I will give it a serious gander tomorrow. Very cool btw. I have a growing
collection of misc UDFs and was thinking that there must be a better way
than doing an include for every page load or loading some monster cfc of
random functions.

>> Make any sense?

Yeah... this time. ;)

thanx again for your insight,

G


On Mon, May 19, 2008 at 7:00 PM, Dominic Watson <
[EMAIL PROTECTED]> wrote:

> >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?



-- 
"We learn something every day, and lots of times it's that what we learned
the day before was wrong."
- Bill Vaughan


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:305676
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