What you're trying to use is called implicit getters and setters. It is implemented in AS 2.0, but has not yet made its way to CF. It's a nifty way to implement data hiding as well as add some functionality behind your getters and setters. When implemented it looks just like you're setting and getting a property of the object.
HTH,
Andy
>Daniel, I think Ben is trying to achieve the functionality you describe, but
using dot notation. He wants someobject.foo =
"test" to acually execute someobject.setFoo('test").
>Ben: why do
you need this? Is there a sufficiently compelling reason to avoid the widely
used and familiar setter method approach
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to cfcdev@cfczone.org 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).
An archive of the CFCDev list is available at www.mail-archive.com/cfcdev@cfczone.org
- [CFCDev] Speaking of Structures Johnson, Ben R.
- Re: [CFCDev] Speaking of Structures Nathan Strutz
- RE: [CFCDev] Speaking of Structures Johnson, Ben R.
- Re: [CFCDev] Speaking of Structures Daniel Roberts
- Re: [CFCDev] Speaking of Structures Seth Petry-Johnson
- RE: [CFCDev] Speaking of Structures Andy Powell
- RE: [CFCDev] Speaking of Structures Jim Davis
- Re: [CFCDev] Speaking of Structures Barry Beattie
- RE: [CFCDev] Speaking of Structures Roland Collins
- RE: [CFCDev] Speaking of Structur... Andrew Powell
- RE: [CFCDev] Speaking of Structures Johnson, Ben R.