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