Woops, typo, I meant import (not cfimport).

Thanks Barney. I've started slowly moving my library of UDFs into utility CFCs as you suggest (anytime I need one from a CFC I have to move it).

Since that's clearly the better way to handle the utility functions, under what conditions do you find yourself using UDFs?

 - j.



On Jul 7, 2004, at 10:10 AM, Barney Boisvert wrote:

I'm not sure what you mean by a cfimport in Java.

I'd say make a utilities CFC containing those methods, and then use the CFC
where you need the functions, be it in another CFC, or in "normal" CF code.
CFINCLUDE is obviously bound to a relative path, while instantiating a CFC
is only tied to the search path. Gives you much greater flexibility,
because you can call them from anywhere.


Cheers,
barneyb

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jay Gibb
Sent: Wednesday, July 07, 2004 8:56 AM
To: [EMAIL PROTECTED]
Subject: [CFCDev] using cfinclude within components (was
Serialization of CFCs)

In a OO language like Java, you have the option of using cfimport if
you need a low-level library function or any other utility function.

If a CF codebase has an organization of UDFs that serve the same type
of purpose (ie: utility functions that may be useful in lots of
places), what's the preferred way to "import" them into your CFCs so
you can use them?

  - j.

----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev'
in the message of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).

An archive of the CFCDev list is available at
www.mail-archive.com/[EMAIL PROTECTED]


---------------------------------------------------------- You are subscribed to cfcdev. To unsubscribe, send an email to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' in the message of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).

An archive of the CFCDev list is available at www.mail-archive.com/[EMAIL PROTECTED]


----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' in the message of the email.


CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).

An archive of the CFCDev list is available at www.mail-archive.com/[EMAIL PROTECTED]

Reply via email to