in reply to Re: how to make a universally inherited method?
in thread how to make a universally inherited method?
The reason I proposed using a singleton is that it's simple, easy to understand and easy to port. If you have a global bunch of variables, every program needs some way to access them -- making this access easily understood seems a fairly low barrier to entry.
You're right that a cleaner way would be to use inheritance so that any object can access the information it needs. But there seemed to me to be multiple steps between the poster's current problem and this cleaner solution.
Chris
M-x auto-bs-mode
|
|---|