• 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
Interesting behaviour
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Interesting behaviour


  • Subject: Interesting behaviour
  • From: Steven Angier <email@hidden>
  • Date: Tue, 18 Jun 2002 17:37:54 +1000
  • Organization: Macscript.com

Hi Chris,

Try this:

on GetNothing()
return
end

set theList to {1,2,3}
set item 2 of theList to GetNothing()
return class of item 2 of theList
--> application ???

Apparently AS replaces the pointer to the integer "2" with a null
pointer, which is being mis-resolved when you ask for the object's
class. It must be because of a flaw within the AEList object to even
allow setting a list member to the result of an expression which returns
no value.

Anyway, I thought it was interesting.

Steven Angier
Macscript.com
_______________________________________________
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.

  • Follow-Ups:
    • Re: Interesting behaviour
      • From: Christopher Nebel <email@hidden>
    • Re: Interesting behaviour
      • From: Andy Wylie <email@hidden>
  • Prev by Date: Re: Application event dict error
  • Next by Date: Re: Interesting behaviour
  • Previous by thread: RE: Works only once (renaming files)
  • Next by thread: Re: Interesting behaviour
  • Index(es):
    • Date
    • Thread