Re: Creating list references in handlers. Bad code or bug?
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