[PEAK] Jumping Aspects

Robert Brewer fumanchu at amor.org
Sat Jul 31 02:02:46 EDT 2004

Phillip J. Eby wrote:
> ...what if we just changed the object's class on-the-fly?
> It seems sort of weird, but basically what would happen is 
> that if you called someObject.setFoo(42), then there would
> be some functions getting called to do DB-specific or UI
> operations, following which the __class__ of 'someObject'
> would change to the abstract domain class, and the original 
> "abstract" setFoo(42) would execute.  Finally, the class 
> would return to being the workspace-specific class.

Q: What would be the drawback of the workspace-specific class possessing
[a reference to] the abstract class rather than _becoming_ it? Has-a
versus is-a.

Robert Brewer
Amor Ministries
fumanchu at amor.org

More information about the PEAK mailing list