[Prev][Next][Index][Thread]
Re: simple method dispatch question
Lyman Taylor wrote:
Sorry about the messed up formatting...
...
> The GOF singleton pattern is for objects that aren't immutable in
> state and identity. Otherwise people wouldn't use it they'd just
> assign the object to "global" var and just use it.
I shouldn't have said "are not" and "would not". Just that usage
would likely be atypical and folks would probably just avoid the
"overhead" of a class to denote their uniqueness.
Lyman
References: