On Apr 19, 2006, at 12:57 PM, Asher Dunn wrote:
On Apr 19, 2006, at 11:43 AM, Norman Palardy wrote:
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.
I would prefer to think of it as the class owning the property, not
each instance sharing the same property. Allowing instance syntax
means you never know whether instance.someProp is a shared property
or an instance property (without looking it up or remembering). It
just makes things less clear, IMO.
-- Asher
but the flip side of the argument is without knowing or looking it up
you don't know where to find instance.someprop. thats seems much
more cumbersome... and requires more knowledge of the
implementation. if you need to know whether a property is shared or
not it's probably not named right or otherwise more self documenting.
mike
--
Mike Woodworth
[EMAIL PROTECTED]
_______________________________________________
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>