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: Emmanuel <email@hidden>
- Date: Mon, 17 Sep 2001 10:21:53 +0200
At 14:04 +0200 15/09/01, Victor Yee wrote:
>
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.
At first sight, this is solving the bug I mentioned:
--------------------------------
on TestRef(theRef)
item 1 of (get contents of theRef)
end TestRef
on Testit()
set theVar to {"it works"}
set theRef to a reference to (get theVar)
TestRef(theRef)
end Testit
Testit()
-- "it works"
--------------------------------
Thanks !!!
Emmanuel