global variables
global variables
- Subject: global variables
- From: Jim Brandt <email@hidden>
- Date: Wed, 17 Jul 2013 13:49:47 -0500
Is there a downside to using global variables?
I have several lists of data that I need across several handlers. This data has been loaded from several .plist files in the main script. I then need this data in the handlers being called by the main script.
Am I better off making the lists global at the top level and then have them available in the handlers or re-reading the .plist files in each handler or pass them in through the argument list (I really don't want to do this because the argument list gets quite long)?
Are the significant advantages of one method over another?
TIA,
Jim Brandt
_______________________________________________
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