Well that makes it less dangerous and it's good to know, cheers. No less ugly though, I just don't like it. I'd prefer a public interface, and instantiation hidden behind a locator or injection of some sort. IMO anything (in your API) that's static and not a "proper" Function (ie no side-effects) should be seriously thought over.
-Josh On Thu, Jul 17, 2008 at 9:11 AM, Maciek Sakrejda <[EMAIL PROTECTED]> wrote: > For what it's worth, that doesn't pollute the global namespace, Josh. > Things within a file outside of the package declared in that file are > private to the class (hence, others can't instantiate your Singleton > unless they pass it null). Kind of odd behavior in ActionScript, but > meh... > > But you're right: opinions on Singletons in general are mixed at best. > Check out, say, > http://steve.yegge.googlepages.com/singleton-considered-stupid > > > > -- "Therefore, send not to know For whom the bell tolls. It tolls for thee." :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED]

