[Q] Why Squeak don't have a Singleton class ?

Lic. Edgar J. De Cleene edgardec2001 at yahoo.com.ar
Sat Dec 3 09:50:07 UTC 2005


Cees De Groot puso en su mail :

> The code you've posted is a pattern - if you have a class where you
> want a singleton instance, you use this code in that class. There's no
> need for a seperate class to handle this

I reading more about this, and found this by Stef

http://www.iam.unibe.ch/~ducasse/Web/OldSmalltalkFiles/Singleton.pdf.


But something still seem unsolved if for having a needed behavior (what only
exist one instance of MyClassFoo) we have type (or copy) a piece os same
code several times.

Anyway, I follow you advice and thanks you.

Edgar



	

	
		
___________________________________________________________ 
1GB gratis, Antivirus y Antispam 
Correo Yahoo!, el mejor correo web del mundo 
http://correo.yahoo.com.ar 




More information about the Squeak-dev mailing list