Re: Mixing Obj-C and C "methods"
Re: Mixing Obj-C and C "methods"
- Subject: Re: Mixing Obj-C and C "methods"
- From: Scott Ribe <email@hidden>
- Date: Wed, 07 Aug 2013 07:36:23 -0600
On Aug 7, 2013, at 1:47 AM, Jean-Daniel Dupas <email@hidden> 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
email@hidden
http://www.elevated-dev.com/
(303) 722-0567 voice
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden