• 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: Luther Fuller <email@hidden>
  • Date: 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.

This means that the application (bundle) is self modifying.

Which, in turn, means that use of global variables will interfere with, for example, codesigning and perhaps other security measures used in Lion or Mt Lion.

For this reason, I never use global variables and never modify a property.

If any of this has changed recently perhaps someone can update us.



 _______________________________________________
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

  • Follow-Ups:
    • Re: global variables
      • From: Shane Stanley <email@hidden>
    • Re: global variables
      • From: Kaydell Leavitt <email@hidden>
    • Re: global variables
      • From: "Manoah F. Adams" <email@hidden>
    • Re: global variables
      • From: Kaydell Leavitt <email@hidden>
References: 
 >global variables (From: Jim Brandt <email@hidden>)

  • Prev by Date: Re: global variables
  • Next by Date: Re: global variables
  • Previous by thread: Re: global variables
  • Next by thread: Re: global variables
  • Index(es):
    • Date
    • Thread