in reply to Re: Re: Program configuration in the OOP world
in thread Program configuration in the OOP world

For an example of how to set this up with Class::Singleton (using just hardcoded info), see Re: how to make a universally inherited method?. For non-hardcoded info, just have it call some configuration reading routine to set the data.

The usage suggested by Fletch is fairly simple and quite powerful. You just need to setup (read in) your configuration once and then it's available to all your modules in that process.

Chris
M-x auto-bs-mode

  • Comment on Re: Re: Re: Program configuration in the OOP world