in reply to Re: Need some help with a dodgy variable
in thread Variable Scope
I must interject that this, while perfectly legal, is horrible programming practice. I've been working on ripping out globals written in exactly this fashion for the past 3 weeks on a side project I wasn't even hired to do.
Do NOT use ::
In fact, please forget that :: exists for variable names. It'll make your life so much easier in the long run, and the people who come after you who have to maintain your code will shower many blessings (instead of curses) upon your head.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: NEVER do this. Ever. Not even once.
by bikeNomad (Priest) on Jul 30, 2001 at 20:59 UTC | |
by dragonchild (Archbishop) on Jul 31, 2001 at 16:29 UTC | |
Re: NEVER do this. Ever. Not even once.
by perchance (Monk) on Jul 30, 2001 at 18:45 UTC | |
by chromatic (Archbishop) on Jul 31, 2001 at 04:02 UTC |