Re: AS Library Question
Re: AS Library Question
- Subject: Re: AS Library Question
- From: Chris Page <email@hidden>
- Date: Thu, 17 Dec 2015 06:58:19 -0800
> I mean, once you know about the issue -- and it is spelled out pretty clearly in the ASLG -- it's hardly crippling.
Actually the ASLG's wording is extremely poor (feel free to file a ticket on it). It completely fails to state that the biggest risk is two completely unrelated scripts can interfere with each other in heinously unexpected and non-obvious ways if both happen to use the same stageful library…
Well, I hope you read this before some of my other replies: I thought you had complained about the *ability* to create multiple component instances. Some of my replies on this particular issue may now be tangental.
As to your point about multiple clients seeing the same library state: that's exactly how frameworks loaded into a process work, and, as far as I am aware, how libraries work in every other scripting language. And if you just use the default AppleScript instance it'll work the same as them. And, like many other scripting/dynamic languages, *if you want* you could create multiple runtime instances to separate things if that fits your ideas about how things should work better. Creating a new instance is straightforward. You have the ability to get what you want—which is the sort of flexibility it was intentionally designed to offer.
-- Chris Page The other, other AppleScript Chris
|
_______________________________________________
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