In my CFCs, I *mostly need* to call an init(), therefore I *always" call
an init() even if it doesn't do anything.  I moved everything out of the
pseudo-constructor area into a function and then I'm consistent
throughout.  YMMV

M!ke

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Mike Kear
Sent: Wednesday, March 30, 2005 6:19 PM
To: [email protected]
Subject: Re: [CFCDev] cfc check

On Wed, 30 Mar 2005 14:58:33 -0800, Sean Corfield
<[EMAIL PROTECTED]> wrote:

[snip]
Using the pseudo-constructor can get in the way of all
> sorts of things. For example, when you try to use the CFC Browser
> (/CFIDE/componentutils/componentdoc.cfm) it will cause the 
> pseudo-constructor to run!
> [snip]

So does that imply you generally avoid using the pseudo-contstructor
approach in favour of explicitly calling an init() method?

Or are there circumstances where the above comment doesnt apply?


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