"This" in CFMX is a reference to the public scope of a CFC instance. Since public methods reside in that scope, they are in "this".

Whether this is a "problem" is up for debate, but it's certainly not atypical for methods of an "object" to just be variables like any other.



John Farrar wrote:
So... as some of you have brought to my attention...

<cfset this.myThing = "value">

<cffunction name="myThing">

</cffunction>


This creates a conflict... to my surprise. It shouldn't in my mind. (Must be my old VB background here... but that wasn't an issue then was it? I haven't done any .NET... just way back at VB6 and before.) I have been doing CF since version 4 and it seemed logical to assume that attributes and methods shouldn't be conflicting. (Which it does apparently.) Is this an issue in Java... what is the problem with this?


Thanks,

John Farrar


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




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