Thank you Dave, that was very succinct and helpful.

Cheers,
Judah

On Wed, Oct 6, 2010 at 9:03 AM, Dave Watts <[email protected]> wrote:
>
>> Matt, do you know of a good rundown on the difference between This and
>> Variables scope in a CFC? I have a basic understanding of it but it is
>> always been something I wanted to make sure I understood the fine
>> distinctions in, kind of like the difference between var scoped
>> variables and the local scope in CF9.
>
> The "this" scope makes variables public, and they can be read and
> written directly from outside the component, which breaks any
> validation that you might have to control their values within the
> component.
>
> The "variables" scope does not make them public.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:337911
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to