• 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 variables
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: global variables


  • Subject: Re: global variables
  • From: Nigel Garvey <email@hidden>
  • Date: Thu, 18 Jul 2013 00:05:14 +0100

Luther Fuller wrote on Wed, 17 Jul 2013 15:13:34 -0500:

>On Jul 17, 2013, at 1:49 PM, Jim Brandt wrote:
>
>> Is there a downside to using global variables?
>
>Yes. It's been several years since I looked into the use of global
>variables,
>but it does have one drawback.
>
>Global variables are persistent.
>
>In other words, when you launch an application, the values from the
>previous launch are remembered.

Luther's point's particularly apposite with bulky values like lists.
They can bloat a script's file and cause errors if they get too big to
be saved back into it. The same's possible with any persistent variable,
of course: global, property, or run-handler variable.

NG


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden


  • Prev by Date: Gathering DiagnosticReports from Console...
  • Next by Date: Re: global variables
  • Previous by thread: Re: global variables
  • Next by thread: Gathering DiagnosticReports from Console...
  • Index(es):
    • Date
    • Thread