Pascal Costanza <costanza@web.de> wrote:
+---------------
| I think this issue becomes clearer when giving examples. When I hear
| "Singleton" I think of the examples given in the GoF book. Here are some:
|
| (defclass filesystem ...)
|
| (defvar *the-filesystem* (make-instance 'filesystem ...))
|
| (defclass mouse ...)
|
| (defvar *the-mouse* (make-instance ...))
+---------------
But both of those are *BAD* examples of singletons!! E.g., I have both
multiple filesystems (UFS, FAT, ISO9660) and multiple mice (PS/2, USB)
on my laptop...
-Rob
-----
Rob Warnock <rpw3@rpw3.org>
627 26th Avenue <URL:http://rpw3.org/>
San Mateo, CA 94403 (650)572-2607