However, if you provide a way to access data in the variables scope with a "getter" then you have provided a reference to that data right in the variables scope. In my book, if the data private to an object is mutatable then it is not encapsulated.
True - the getter would need to return a copy of the instance data (e.g., using duplicate() or something similar) to avoid passing back a reference to the 'variables' data. In some cases, passing back a reference is fine. It's all about design!
Sean A Corfield -- http://www.corfield.org/blog/
"If you're not annoying somebody, you're not really alive." -- Margaret Atwood
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the word 'unsubscribe cfcdev' in the message of the email.
CFCDev is run by CFCZone (www.cfczone.org) and supported by Mindtool, Corporation (www.mindtool.com).
An archive of the CFCDev list is available at www.mail-archive.com/[EMAIL PROTECTED]
