One good reason to keep data private, even if it doesn't seem important: If you keep it private from the get go, and build get/set functions, and then later on realize it really does need to be private, you don't have to update any of your caller code.
======================================================================== === Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc (www.mindseye.com) Member of Team Macromedia (http://www.macromedia.com/go/teammacromedia) Email : [EMAIL PROTECTED] Blog : www.camdenfamily.com/morpheus/blog Yahoo IM : morpheus "My ally is the Force, and a powerful ally it is." - Yoda > -----Original Message----- > From: Christian Cantrell [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 10, 2003 12:40 PM > To: CF-Talk > Subject: Re: CFC Newbie Discussion. > > > On Tuesday, June 10, 2003, at 02:20 PM, Raymond Camden wrote: > > > While I strongly urge folks to not use the This scope, I > would _not_ > > call it a bug. The This scope works _exactly_ as > advertised, it's just > > not the preferred way of storing data for a CFC. > > Raymond is correct. It is not a bug -- it's just how CFCs were > designed to work. If you need data publicly accessible, use of the > "this" scope is fine. If you need your data to be private, > either use > the "unnamed" scope, or create your own private struct. I would > recommend keeping data as private as possible, however if you don't > feel you need to, or it doesn't fit with your architecture, then do > what is best for you. > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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 Host with the leader in ColdFusion hosting. Voted #1 ColdFusion host by CF Developers. Offering shared and dedicated hosting options. www.cfxhosting.com/default.cfm?redirect=10481 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

