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

Re: Interesting behaviour


  • Subject: Re: Interesting behaviour
  • From: Christopher Nebel <email@hidden>
  • Date: Tue, 18 Jun 2002 15:33:01 -0700

On Tuesday, June 18, 2002, at 12:37 AM, Steven Angier wrote:

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.

Interesting, indeed. Seeing as how Andy Wylie running 1.3.7 got the error I'd expect to see, it looks like we broke this back in AppleScript 1.4 and nobody noticed until now. (I couldn't find a 1.4 system, but I tested back to 1.5.5, and it works as you say.) File a bug, please.


--Chris Nebel
AppleScript Engineering
_______________________________________________
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.

References: 
 >Interesting behaviour (From: Steven Angier <email@hidden>)

  • Prev by Date: Re: Insufficient memory for Folder Actions Extension; how can I increase allocation?
  • Next by Date: Re: Bevel and emboss with PSD7
  • Previous by thread: Re: Interesting behaviour
  • Next by thread: Bevel and emboss with PSD7
  • Index(es):
    • Date
    • Thread