I've seen quite a few references to how the "private"-ness of the variables scope in CFCs (talking RedSky here) is not quite like Java's private or protected scopes. I am something of a "n00b" (haxor-speak!) when it comes to Java, so would anyone care to compare and contrast the aforementioned scopes in Java and CF? I (and surely others) would be greatful.
Thanks, NAT > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Sean A Corfield > Sent: Wednesday, July 30, 2003 8:09 PM > To: [EMAIL PROTECTED] > Subject: Re: [CFCDev] "this" scope vs. unnamed > > > On Wednesday, Jul 30, 2003, at 15:25 US/Pacific, Hal Helms wrote: > > I think the problem began when Macromedia chose the name > "this", which > > really operates in two separate modes. On one hand, it's a public > > scope. > > On the other hand, it's a reference to the object created > from the CFC. > > Worse, by choosing the name, "this", they borrow the > terminology from > > Java while redefining its meaning. > > Yes, I agree with Hal that this was probably one of the more > unfortunate language design decisions made when CFCs were added into > the language. I can sort of see why they did it, from a > ColdFusion-has-named-scopes point of view, but it's still > caused a lot > of confusion. > > Fortunately, Red Sky fixes "variables" scope so that it can > actually be > used as intended inside CFCs to represent a non-public scope. > > Note: I say 'non-public' because neither the unnamed scope > (in CFMX and > Red Sky) nor the variables scope (Red Sky) are actually private. > They're closer to being protected, in Java terminology, but even then > there really isn't a 100% match. > > 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). > ---------------------------------------------------------- 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).
