the "debug" function is enabled or disabled in accordance to the module that uses it
I see, in that case I would concur with karlgoethebier and I think an OO approach is probably best - each module can get an object with an individual debug flag. And looking into existing logging modules, as 1nickt said, makes sense before you re-invent that wheel.
In reply to Re^3: Overriding Global Variables
by haukex
in thread Overriding Global Variables
by Mano_Man
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |