Re: Interesting behaviour
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.