Re: varibles in handler
Re: varibles in handler
- Subject: Re: varibles in handler
- From: Axel Luttgens <email@hidden>
- Date: Thu, 20 Jan 2011 00:12:10 +0100
Le 19 janv. 2011 à 23:49, Nigel Garvey a écrit :
> Axel Luttgens wrote on Wed, 19 Jan 2011 17:46:50 +0100:
>
>> [...]
>> That way, one would have a single name (the script object's name) in the
>> namespace anymore (instead of two: originalDelimiters and setDelimiters) as
>> well as avoid any scoping and persistency issues coming with global
>> variables.
>
> It wouldn't avoid persistency issues. The variable TID would be global
> and the script object, along with the current value of its
> originalDelimiters property — would persist between runs. :-)
Hello Nigel,
Sorry, too much ideas chocking simultaneously in a poor and badly behaved head.
I was thinking about the opportunity to define a script's "method" instead of directly act upon a global variable, such as the reset() handler in my alternate proposal.
Thanks for having raised the point.
Axel
_______________________________________________
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