Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!nstn.ns.ca!news.cs.indiana.edu!julius.cs.uiuc.edu!rpi!zaphod.mps.ohio-state.edu!samsung!uunet!mcsun!hp4nl!tuegate.tue.nl!rc6.urc.tue.nl!rwa.urc.tue.nl!rcbaab From: rcbaab@rwa.urc.tue.nl (Annard Brouwer) Newsgroups: comp.sys.mac.programmer Subject: Re: Linked Lists: Handles or Pointers? Message-ID: Date: 28 Jan 91 08:39:12 GMT References: <1991Jan23.002212.7648@umiami.ir.miami.edu> <.664719435@rw8.urc.tue.nl> <1991Jan24.145729.12853@nada.kth.se> Sender: USENET News System Reply-To: rcbaab@urc.tue.nl Lines: 42 d88-jwa@aswad.nada.kth.se (Jon W{tte) writes: >In article <.664719435@rw8.urc.tue.nl> rcbaab@urc.tue.nl writes: >>It's not that difficult to do but please do not use calls like MoveHHi() and >>HLock() and HUnlock(). They have given me lot's of problems and so I don't >>use them anymore... >Remind me not to use your programs... Sure thing, I'll mention it in my about box :-)) >If you use a dereferenced handle (like, pass it to the ToolBox) >you'll have to lock it. If you lock a handle, it's nice to do it >at the top of the heap. Thus: > ... >This is the recommended way of doing it. I'd rather use something like: var BigBlah:HandleType; procedure test; var blah: HandleType; begin blah:=BigBlah; "now I can do whatever I like with whatever toolbox call I would like to use..." BigBlah:=blah; end; Ready, and I don't have to use those ^*&%$@##$ calls like MoveHHi etcx etc... This is also a recommended way of doing it! Good luck. Annard -- | Annard Brouwer Bitnet : rcgbbaab@heitue51 | Dreef 74 UUCP : rcbaab@urc.tue.nl | NL-5504 LD Veldhoven packet-radio : pe1koo@pi8mid | The Netherlands [44.137.28.6]