Re: is this a bug?
Re: is this a bug?
- Subject: Re: is this a bug?
- From: has <email@hidden>
- Date: Tue, 6 Aug 2002 21:30:18 +0100
Arthur J. Knapp wrote:
>
I'm sorry, Has, you've lost me. You have an operator, "is in", and
>
two operands, "theString's character 9" and "1234567890". The first
>
operand cannot be evaluated, so one might expect it to cause an error
>
first, along the lines of:
>
Can't get character 9 of "12345678"
>
>
However, another errors occurs instead, relating to an implicit
>
coearcion being attempted by the "is in" operator. This most likely
>
indicates the AppleScript compiler has delayed evaluation of the
>
first operand until it has understood it's relationship to the rest
>
of the line, which is why you are getting a coercion error rather
>
than an out-of-bounds error. In any case, it is a proper error,
>
not a bug. Could you elaborate on the bug?
Thanks for the explanation as to the cause.
Anyway, the bug is that this _not_ the same behaviour shown by older
versions of AS (1.1.2, 1.4, 1.6) - it has suddenly changed without warning
at some point since then. (In turn, this has broken at least one of my
scripts... which is why I'm not very happy - who knows what others might be
affected?)
Additionally, the new error message is uninformative at best; downright
misleading at worst. It's AS's job to figure out (and report) precisely
where and why the problem originated, not the user's.
Cheers,
has
--
(My email address has changed from <email@hidden> to
<email@hidden>. Please update your address books accordingly.)
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.