I am thinking of suggesting two global namespaces

In package LedgerSMB

use Class::Struct LedgerSMB::Globals => {
               user => 'LedgerSMB::User',
               session => 'LedgerSMB::Session',
               config => 'LedgerSMB::ConfigFile',
                        # Config settings, similar to Sysconfig today
};

our Globals = LedgerSMB::Globals->new();

in pacakge LedgerSMB::Web:
use Class::Struct LedgerSMB::Web::Globals => {
               session => 'LedgerSMB::Session::Web',
               request => 'LedgerSMB::Web::Request',
};

our Globals = LedgerSMB::Web::Globals->new();

Any other globally accessible information that needs to be available
globally through apps/scripts?

Best Wishes,
Chris Travers

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Ledger-smb-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ledger-smb-devel

Reply via email to