• 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: Creating list references in handlers. Bad code or bug?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Creating list references in handlers. Bad code or bug?


  • Subject: Re: Creating list references in handlers. Bad code or bug?
  • From: Victor Yee <email@hidden>
  • Date: Sat, 15 Sep 2001 08:04:55 -0400

On Fri, 14 Sep 2001 17:50:12 +0200, Helmut Fuchs wrote,

> on theHandler()
> local theData
>
> set theData to {theList:{1, 2, 3}}
> set theListReference to a reference to theList of theData
>
> return contents of theListReference
> end theHandler
>
> theHandler()

and on Fri, 14 Sep 2001 12:21:24 -0400, I wrote,

> on theHandler()
> script theData
> property theList : {1, 2, 3}
> end script
> set theListReference to a reference to theList of theData
> return contents of theListReference
> end theHandler
>
> theHandler()

Was thinking about this and I believe that there is an implicit "get" involved here.
i.e. set theListReference to a reference to (get theList of theData)

I re-read Emmanual's previous post ("Bug on references under OS>8" - Wed, 5 Sep 2001) and believe that his bug might be related. i.e. an implicit "get" that was present in previous AS versions is no longer in current AS.

Victor


  • Follow-Ups:
    • Re: Creating list references in handlers. Bad code or bug?
      • From: Emmanuel <email@hidden>
  • Prev by Date: PowerMail Syntax
  • Next by Date: Re: Creating list references in handlers. Bad code or bug?
  • Previous by thread: Re: Creating list references in handlers. Bad code or bug?
  • Next by thread: Re: Creating list references in handlers. Bad code or bug?
  • Index(es):
    • Date
    • Thread