For personal/work projects, I also use #uniqueInstance. It's true that if #current is used for singleton instances it could be ambiguous. On Mon, May 14, 2012 at 7:12 AM, Nicolas Cellier < nicolas.cellier.aka.nice@gmail.com> wrote:
Historically, #soleInstance can be found in st80 I think.
Nicolas
2012/5/14 Esteban Lorenzano <estebanlm@gmail.com>:
On Mon, May 14, 2012 at 9:42 AM, Mariano Martinez Peck <marianopeck@gmail.com> wrote:
On Mon, May 14, 2012 at 6:24 AM, Sean P. DeNigris <
sean@clipperadams.com>
wrote:
I've noticed we use a buffet of accessors for singletons, like
#default,
#instance, #current... it'd be nice to just pick one. I like #instance, but could live with any as long as I never have to guess which one from a list again :)
Indeed. For me it depends in the case. For the general case, I like #uniqueInstance. And #default and #current I use it when it is not completly singleton. I mean, when there is a class side variable storing it, but there could be also some other instances, like non-default or non-current.
+1
Sean
-- View this message in context: http://forum.world.st/Singleton-access-selector-tp4630062.html Sent from the Pharo Smalltalk mailing list archive at Nabble.com.
-- Mariano http://marianopeck.wordpress.com