• 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: 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.

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

  • Prev by Date: Interesting behaviour
  • Next by Date: Bevel and emboss with PSD7
  • Previous by thread: Interesting behaviour
  • Next by thread: Re: Interesting behaviour
  • Index(es):
    • Date
    • Thread