• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: global variable not being recognized by script object su
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: global variable not being recognized by script object su (From: "Arthur J Knapp" <email@hidden>)

  • Prev by Date: Re: Replacing range within a string
  • Next by Date: Re: Handler joy
  • Previous by thread: Re: global variable not being recognized by script object su
  • Next by thread: Re: global variable not being recognized by script object su
  • Index(es):
    • Date
    • Thread