same-named class and global vars

Todd Blanchard tblanchard at mac.com
Fri Feb 2 19:12:58 UTC 2007


I'd like it better if the filein code prompted the user to rename the  
class variable to resolve the conflict.

On Feb 1, 2007, at 12:27 PM, Lex Spoon wrote:

> 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