Dialog warn: equivalent in squeak

Joel Shellman joel at ikestrel.com
Wed May 28 13:34:56 UTC 2003


> Actually, "self inform:" is way better.
>
> How would creating an explicit dependency to PopUpMenu be better than a
> generic message send to self? That is as encapsulated as you can get.
>
> The fact that _currently_, generic methods are implemented as instance
> methods of Object is just a nuisance. The main point is that currently,
> any object depends on Object anyway, so no artificial dependency is
> introduced at all.

Not only are you introducing an artificial dependency, but you are
introducing a hidden dependency because anyone who uses self inform: will
now be dependent on PopUpMenu and may not even realize it.

-joel



More information about the Squeak-dev mailing list