On Wednesday, Aug 6, 2003, at 01:00 US/Pacific, Brian LeRoux wrote:
Btw, what is the difference putting the

<cfset instance = StructNew() /> in the psuedo-constructor vs a normal
constructor? I do the latter..

Since CF auto-creates structs when it finds instance.x, it doesn't actually matter but it is slightly clearer to do the above in the pseudo-constructor.


For CFMX 6.0 that is.

My personal feeling is that in CFMX 6.1, instance should go away in the pseudo-constructor and be replaced by the following in the init() method:

<cfset variables.instance = structNew() />

John, personally, I don't think cfinclude and cfc's should be in the
same sentence. :) The whole thing reaks of breaking encapsulation..

In CFMX 6.1, it is not feasible to cfinclude your method body. I'm not sure how I feel about that yet.


Stace, there's nothing wrong w/ "this" anymore.

Hmm, well, it's public data and so it has all the things wrong with it that public data has (lack of encapsulation being the primary problem).


Sean A Corfield -- http://www.corfield.org/blog/

"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood

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


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

Reply via email to