The this scope has always worked exactly as I expected, and I do
prefer to use it to store data unless there is a specific reason not to.

-- 
 jon
 mailto:[EMAIL PROTECTED]

Tuesday, June 10, 2003, 2:20:22 PM, you wrote:
RC> While I strongly urge folks to not use the This scope, I would _not_
RC> call it a bug. The This scope works _exactly_ as advertised, it's just
RC> not the preferred way of storing data for a CFC.

RC> -Raymond Camen

>> 
>> Let me point out the scope bug...
>> 
>> using "this" scope exposes your data members outside of the 
>> cfc. In addition, the varibales scope is not the default for 
>> not providing a scope within a CFC. There is something known 
>> as the "unknown" scope. This unknown scope allows data 
>> members to be available to functions within the CFC... not outside of.
>> 
>> this.someVar would be accessible inside and outside of the 
>> CFC someVar would be accessible inside the CFC to the functions only.
>> 
>> 

RC> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

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

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to