Hey Paul,

     I can't speak for Adobe, but in many other languages, accessors/mutators are simply conventions, not actual language constructs.  Java, for example, has no understanding that a method is an accessor.  It is merely a "bean" convention that getFoo/setFoo are getters and settors for Foo.  So in many languages there is infinite freedom, but less language support.  .NET, by contrast, is probably what you are comparing to with it's properties and property accessors.  It might be useful to compare languages from a "desirability" standpoint, but it's often not helpful because languages are implemented differently, and each has its own implementation challenges.

It's hard to say why Adobe went this way, but if accessors are more carefully managed by the language, it may be a much easier implementation to pair their access levels.

regards,
Christian.

Paul Andrews wrote:

Matt, what has made Adobe depart from what is standard behaviour in other languages. I'm having trouble understanding any reason for this than perhaps an implementation issue (ie, we would have preferred to support independent visibility but we preferred to get it out the door without delay, since this is a relatively minor issue).
 
Paul
----- Original Message -----
Sent: Friday, September 08, 2006 4:48 AM
Subject: RE: [flexcoders] Public getter, private setter?

It’s intentional right now that a getter/setter pair must have a matching visibility modifier.  You can’t change whether a variable is visible to the compiler based on whether it’s being read or being written.  While we understand the use-case (and debated it internally ourselves) this is the approach we’re taking right now.

 




--

christian gruber + process coach and architect

Israfil Consulting Services Corporation

email [EMAIL PROTECTED] + bus 905.640.1119 + mob 416.998.6023

__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Software development tool Software development Software development services
Home design software Software development company

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___

Reply via email to