Re: By nice to the Windows user come to AppleScript please :-)
Re: By nice to the Windows user come to AppleScript please :-)
- Subject: Re: By nice to the Windows user come to AppleScript please :-)
- From: has <email@hidden>
- Date: Mon, 14 Jan 2002 14:12:20 +0000
Andy Satori wrote:
[snip]
>
Well, this would make sense in truth.
Yep, sorry - I messed up on that previous example a bit:
[...]
>
> repeat with x in {1, 2, 3}
>
> x's class
>
> end repeat
>
> --> integer -- except it swears its just an integer... hmm
repeat with x in {1, 2, 3}
x = 3
end repeat
--> false -- but... wasn't it just claiming to be an integer? So why not true?
Not that I mind AS using references/pointers internally, but I do feel
there's something not quite right here. It seems like the equality test
ought to return true. To get the above to work as intended, you actually
need to use:
x's contents = 3
Or is it just me, and other languages do do it this way as well?
Cheers,
has