Re: global variable not being recognized by script object su
Re: global variable not being recognized by script object su
- Subject: Re: global variable not being recognized by script object su
- From: JollyRoger <email@hidden>
- Date: Wed, 28 Feb 2001 10:31:47 -0600
on 2/28/2001 9:10 AM, Arthur J Knapp at email@hidden wrote:
>
> And I don't need to use funny Microsoft names (like "gStrMytext") to protect
>
> myself against accidental bumping together of names in the global name space,
>
> because there's nothing to bump.
>
>
In recent months, I have become especially fond of using gStrEtc...
>
type variable names, ie: descriptive of both scope and type. I find
>
that when I go back to re-examine complicated scripts that I had
>
written several months ago, that the variable naming conventions
>
are helpful.
>
>
If this type of thing is truly of Microsoft invention, then it may
>
be the only darn thing of use that they have ever done. ;-)
Using a lower-case "g" in front of a global variable has been done by Mac,
Windows, Linux programmers alike for years and years. It's a perfectly good
convention (along with lower-case "k" for constants, "s" for strings, "r"
for resources, etc.).
JR