Subject: Re: Singleton (Re: Nested case statements)
From: rpw3@rpw3.org (Rob Warnock)
Date: Fri, 16 Jan 2004 23:17:48 -0600
Newsgroups: comp.lang.lisp
Message-ID: <A-ydndWL_8zhWJXdRVn-ug@speakeasy.net>
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