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


References: 
 >Re: Creating list references in handlers. Bad code or bug? (From: Victor Yee <email@hidden>)

  • Prev by Date: Re: Creating styled text files and who will open
  • 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