> Anything placed in the variables scope is private; bug or not.

Depends on how you look at it, sure it's private in that you can't access
cfcInstance.salary

But you could do something like this...

<cfset variables.salary = foo.getSalary()>
<cfset variables.salary = DollarFormat(variables.salary)>
<cfoutput>#variables.salary#</cfoutput>

and you will change the value of the data member inside the CFC. I don't see
how you can call that behavior private, because it goes against all the
reasons you would want to have private access.

Though I agree with you if you are saying that as long as the developer
using your CFC is aware of the bug, then you can pretend that variables
scope is private, and just avoid writing code like the code above.


______________________________________________________________________
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to