Sounds like you are using the CFC in this case as more or less a container of UDFs.  With that being the case beyond it just getting you into the habbit of having an Init and using it I do not see much benifit to putting one in there.  Of course just putting one in there will not force you to use it unless you end up adding some sort of check to your utility functions at their tops to ensure the CFC has been initiated.

On 5/8/06, Joshua Scott <[EMAIL PROTECTED]> wrote:
All,

I have a two function utility cfc that I use to create sortable columns for
record displays. Always before I have called

<cfset var SortMaster = CreateObject("Component",
"CAMSymphony.model.util.SortMaster") />

Many of the framework and OO oriented CFC patterns that I have seen actually
have a init() method and are created like this:

<cfset var SortMaster = CreateObject("Component",
"CAMSymphony.model.util.SortMaster").init() />

I understand the purpose in the frameworks for using this pattern, but in a
simple cfc is there a purpose for this?

Any advise would be great.

- JS



------------------------------------------------
Joshua Scott
Resonant Media Technologies, LLC.
http://www.resonantmedia.com | http://ponderings.wordpress.com


"It is impossible to get out of a problem by using the same type of thinking
that it took to get into the problem." -- Albert Einstein






----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to [email protected] with the words 'unsubscribe cfcdev' as the subject of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting (www.cfxhosting.com).

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





--
Aaron Rouse
http://www.happyhacker.com/ ----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to [email protected] with the words 'unsubscribe cfcdev' as the subject of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting (www.cfxhosting.com).

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

Reply via email to