in reply to Re: Re: how to make a universally inherited method?
in thread how to make a universally inherited method?

Hi,

exphysicist here again.

I implemented three or four singletons today. It works well and Class::Singleton is a real gem.

As it happens the globals break down into a number of logically grouped subsets. Each of these sets is well represented by a separate singleton. Not all methods will need to access all of the singletons so my namespace really is reduced. Plus access to the variables can be controlled and monitored.

There's another issue to consider. As soon as I start moving methods into real classes I break the local variable glue that previously held the program together. Singletons provide an easy and quick way of handling that issue.

  • Comment on Re: Re: Re: how to make a universally inherited method?