Re: Interesting behaviour
Re: Interesting behaviour
- Subject: Re: Interesting behaviour
- From: Andy Wylie <email@hidden>
- Date: Tue, 18 Jun 2002 20:58:17 +1200
on 18/6/02 7:37 PM +1200: Steven Angier wrote:
>
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.
>
try
set item 2 of theList to GetNothing()
on error m number n
return {n, m}
end try
-- {-2763, "No result was returned from some part of this expression."}
AS 1.37 OS 8.6
_____________________________ Andy
_______________________________________________
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.