On Apr 19, 2006, at 8:35 AM, Asher Dunn wrote:


On Apr 19, 2006, at 11:24 AM, Jonathan Johnson wrote:

I would consider it a bug that you can say instanceOfClass.sharedProp; use ClassName.sharedProp.

This is a feature. They work just like Constants work.

Constants and shared methods and properties are class members, not instance members. I now understand that instance scope works intentionally, but I do not think it should.

Why not ?
Every instance is a member of that class and shares those properties.
The instance version of looking up the property is just a "short hand" to getting at the class' shared property.


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to