[ENH] Singleton class
Norton, Chris
chrisn at Kronos.com
Sat May 1 01:29:26 UTC 1999
shaping at bigfoot.com [SMTP:shaping at bigfoot.com] said:
>How about class method #only?
Hi Shaping.
The "Design Patterns Smalltalk Companion" book's example
implementation of Singleton uses
Singleton class>>current
which is the same protocol that I've also used for years to
represent the single instance.
---==> Chris
PS> More on "Design Patterns Smalltalk Comparison" can be found at:
http://www.awl.com/cseng/swpatterns
More information about the Squeak-dev
mailing list
|