[Q] Why Squeak don't have a Singleton class ?
David T. Lewis
lewis at mail.msen.com
Sat Dec 3 16:04:07 UTC 2005
On Sat, Dec 03, 2005 at 12:02:30PM +0100, Philippe Marschall wrote:
> > There's no need for a seperate class to handle this.
>
> I disagree. Should I really have to duplicate this code every time I
> want a new singleton class?
>
Yes. If you add up all the duplicated singleton code in the known
universe, it adds up to fewer bytes than you are going to expend
on discussing how to solve the "problem."
Dave
More information about the Squeak-dev
mailing list
|