Re: is this a bug?
Re: is this a bug?
- Subject: Re: is this a bug?
- From: "Arthur J. Knapp" <email@hidden>
- Date: Tue, 06 Aug 2002 10:50:39 -0400
>
Date: Tue, 6 Aug 2002 00:42:56 +0100
>
From: has <email@hidden>
>
Subject: is this a bug?
>
set theString to "12345678"
>
theString's character 9 is in "1234567890"
>
--> Error: Can't make character 9 of "12345678" into a string.
>
Anyone care to confirm the second case? Looks like a recent bug to me
What bug?
>
... - I
>
certainly don't recall ever having this problem before - if so, is it a
>
known one? Should I give up trying to write clean, minimal code on the
>
assumption that AS actually knows what the heck it's doing, and strew
>
explicit 'get's all over the place? Hmph.
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?
{ Arthur J. Knapp, of <
http://www.STELLARViSIONs.com>
a r t h u r @ s t e l l a r v i s i o n s . c o m
}
_______________________________________________
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.