Oh, I'm not disputing that. I thought you were saying that, if method init returns This, then the Thing you get back will not be able to use private methods if they are called from public methods.
=========================================================================== Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc (www.mindseye.com) Member of Team Macromedia (http://www.macromedia.com/go/teammacromedia) Email : [EMAIL PROTECTED] Blog : www.camdenfamily.com/morpheus/blog Yahoo IM : morpheus "My ally is the Force, and a powerful ally it is." - Yoda > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Matt Liotta > Sent: Tuesday, March 16, 2004 5:24 PM > To: [EMAIL PROTECTED] > Subject: Re: [CFCDev] Variable Naming, WAS: RFC, CFC Best Practices > > > Eh? I have a method, privtest, marked private. My CFCs init method > > returns this. In the Thing I get back, I can call Test(), > which itself > > called privtest, and this works fine. I wouldn't expect to > be able to > > call > > privtest() on Thing directly, of course, but it works just > fine when > > called from a public method. > > > You misunderstand. Create a private method name foo. Now > create a public method named bar. Inside of bar, call foo > using this.foo. It won't work because this is not a reference > to itself. It is just a scope. > > -Matt > > ---------------------------------------------------------- > 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]
