On Aug 7, 2013, at 1:47 AM, Jean-Daniel Dupas <devli...@shadowlab.org> wrote:

> While all theses methods may look valid, what not simply use a static 
> variable declared in your file ?

DING DING DING DING! WE HAVE A WINNER!

Actually, much of the history behind other methods for singletons revolves 
around big enterprisey nasty inter-tangled systems where developers lose track 
of (in many cases, never knew in the first place) the dependencies between 
globals.

Well, in my opinion, if you have so many dependencies between globals that you 
can't figure out in which order to initialize them, you have a far bigger 
problem.

-- 
Scott Ribe
scott_r...@elevated-dev.com
http://www.elevated-dev.com/
(303) 722-0567 voice





_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to