On Mon, 28 Feb 2005 07:37:35 -0800, Paul Berkowitz wrote:
But why is there a coercible 'text item 2 of "9"' in the first place?
text item 2 of "9"
--> ERROR: Can't get text item 2 of "9"
Whatever is in parentheses is supposed to be executed first. So I
wonder why
all the statements, including the 1 * (...), don't error as they
should?
That's the bit that's buggy.
Agreed. Just to add further to the confusion (and I don't *think* this
has been mentioned yet), there seem to be a couple of ways to change
the result - apart from using a different machine/system.
Last night, I tried modifying a series of the quoted integer (0 * (item
2 of "1"), 0 * (item 2 of "2"), etc.) - and was rewarded with a
sequence that started:
I find it hard to believe myself that this happened on the same
machine. If it didn't, then I'm moving into the advanced stages of
senility. Go figure...
BTW, I imagine someone has already tried addition and subtraction, too:
-----------
set l to {}
repeat with n from 0 to 10
set n to n as string
set c to count n + 1
set l's end to {n:n, r:0 + (item c of n)}
end repeat
l