Modules instead of Behaviors (was: Generalized Object Modules
Design)
Anthony Hannan
ajh18 at cornell.edu
Tue Mar 5 21:39:46 UTC 2002
Anthony Hannan <ajh18 at cornell.edu> wrote:
> Modules can add/remove instance
> variables from a class independently, without worrying about what other
> vars are defined for that class by other modules. The only restriction
> is that two modules cannot define the same var name for the same class.
Actually, it is ok for two modules to define the same var name. If this
happens the vars will just be prefixed with their module names and two
separate slots will be created.
Cheers,
Anthony
More information about the Squeak-dev
mailing list
|