Re: global variables
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