What you are suggesting would be a nice feature.

I cache certain global functions in the server scope or the
application scope, which is fairly close to what you are trying to
achieve. So throughout the application, I always have available
server.fcn.X and application.fcn.Y, without having to load in a UDF on
every page call.

-Mike Chabot

On 10/29/07, Nicholas Vacek <[EMAIL PROTECTED]> wrote:
> Is there a way to add custom functions to ColdFusion, so that I can
> reference them without having to put them in a cfc or cfm page?
>
> For instance, I've written a simple, user-defined function. But I don't
> want to save it in the Application or Request scope, because it needs to
> be available within my CFCs - And I don't want to pass the function into
> every CFC, because that's a pain.
>
> I want my function to be available _everywhere_ within my application,
> just like a normal function. In fact, I'd like it if my function was
> available everywhere to every application, on my server. Is this
> possible? Has anyone ever hacked the ColdFusion core to add their own
> custom functions?

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Get involved in the latest ColdFusion discussions, product
development sharing, and articles on the Adobe Labs wiki.
http://labs/adobe.com/wiki/index.php/ColdFusion_8

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

Reply via email to