same-named class and global vars

Lex Spoon lex at lexspoon.org
Thu Feb 1 20:27:15 UTC 2007


I am trying to finalize a packages distribution for 3.9, and I
discovered a sad problem: SmallDEVS and Exupery cannot be loaded at
the same time.  The reason is a sad one: SmallDEVS has a class named
Timer, and Exupery has a class variable named Timer.

If the system were to allow loading these two packages, they would
almost certainly coexist just fine.  It is un-Squeaklike to be so
worried about a potential error (accessing the wrong variable), that
we immediate cause a total failure (rejection by the compiler).

Can we at least allow this situation at *load* time, even if most
developers are against allowing it in the IDE ?  At load time it is
too late, and you may as well go for it IMHO.  It would also be
consistent with our creating fresh global variables in "Undefined", as
a way to work around semi-broken code modules.

  http://bugs.impara.de/view.php?id=5905

-Lex





More information about the Squeak-dev mailing list