On Dec 2, 2008, at 6:34 PM, Paul McNett wrote:

> I still think it is correct to save only overridden/changed  
> properties, even for
> classes. Think of the equivalent in pure-python code. You don't see:

        I started out from that position, and quickly found that things got  
real messy real fast with more than one level of inheritance. While  
I'd like to be able to say "Don't subclass more than one level",  
that's an arbitrary limitation.

        Take an example with 3 levels of inheritance: to find out what the  
default value of a property should be for an instance, I have to find  
its superclass and see what it is there. If it's not defined, I then  
have to find the super-superclass and check that. If it's not defined  
there, then I have to check the super-super-superclass. Only if it's  
not defined there can I assume that the instance should use the default.

        The only practical solution was to store all properties on classes,  
and only changed properties on instances.


-- Ed Leafe





_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/[EMAIL PROTECTED]

Reply via email to