• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: By nice to the Windows user come to AppleScript please :-)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Multi-user server-hosted script?
      • From: Jeremy Reichman <email@hidden>
  • Prev by Date: Re: Please Pass the Handler
  • Next by Date: Re: Please Pass the Handler
  • Previous by thread: Re: By nice to the Windows user come to AppleScript please :-)
  • Next by thread: Multi-user server-hosted script?
  • Index(es):
    • Date
    • Thread