John, OK.. that's fine. But how do we determine that knowing a protected variable called car.gas that is read only is any different than a method called car.getGasLeft(). It seems to me that they both return the same thing. If you don't change one your just as safe as not changing the other. Could you (I'm likely a lost cause on this... just hoping to get the point) try to clear that up for me? It seems like you could create a getter/setter function that sets the return type on variables just like on functions. This is something a number of us signed of to the CF Wish list before version CFMX7 shipped. We are hoping to see it rise to exist in the next version. (I.E. Should I change my vote?)
John -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Joe Rinehart Sent: Monday, August 29, 2005 1:49 PM To: [email protected] Subject: Re: [CFCDev] When to use the THIS scope for a ColdFusion Component? John, > isn't encapsulation the concept that the bean doesn't know anything > about the outside world? That's 1/2 of it - the other half is that the outside world should have no knowledge of the inside mechanics of the object in question, relying on its interface, not its implementation. -Joe -- Get Glued! The Model-Glue ColdFusion Framework http://www.model-glue.com ---------------------------------------------------------- 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]
