The "this" scope opens your variables so they can be edited without using a getter/setter method. In other words, "this" lets you access your variable data directly. "Variables" scope protects your data, but you'll need accessor methods (getter/setters) to do anything with the data.
Tom -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of wolf2k5 Sent: Monday, August 29, 2005 11:29 AM To: [email protected]; [email protected] Subject: [CFCDev] When to use the THIS scope for a ColdFusion Component? Hi all, I am new to OOP, but I know CFML pretty well. I started playing with ColdFusion Components a couple of years ago and I never found a good reason to use the "This" scope. Am I missing anything? Thanks. ---------------------------------------------------------- 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). CFCDev is supported by New Atlanta, makers of BlueDragon http://www.newatlanta.com/products/bluedragon/index.cfm 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). CFCDev is supported by New Atlanta, makers of BlueDragon http://www.newatlanta.com/products/bluedragon/index.cfm An archive of the CFCDev list is available at www.mail-archive.com/[email protected]
