Menu

#5 Adding inst var does not recompile subclasses

open
None
5
2008-11-25
2008-11-25
No

When adding an instance variable, slot indexes in all subclasses are changed. Subclasses need to be recompiled.

Currently this does not happen if the subclass is in another Package.

IMHO this is a bug in the design of Smalltalk. Instance variables of superclasses should never be able to be directly accessed, and instvars should be numbered starting from 1 for each class regardless of what is available in the superclass.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB