Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.csd.uwm.edu!gem.mps.ohio-state.edu!ginosko!uunet!mcsun!sunic!kth!draken!d88-jwa From: d88-jwa@nada.kth.se (Reply via mail or intl. +46 8 258 268...) Newsgroups: comp.sys.mac.programmer Subject: Re: Integer Size problem Message-ID: <1465@draken.nada.kth.se> Date: 23 Aug 89 19:25:45 GMT References: <15141@dartvax.Dartmouth.EDU> <11689@cit-vax.Caltech.Edu> Reply-To: d88-jwa@nada.kth.se (Jon W{tte) Organization: Royal Institute of Technology, Stockholm, Sweden Lines: 20 In article <11689@cit-vax.Caltech.Edu> palmer@tybalt.caltech.edu.UUCP (David Palmer) writes: >A better way, clearer and probably faster, however is to just do: > **(rect **)myHandle = myRect; > >You don't have to lock anything down, it is a single easy to understand Wrong. Incorrect. What happens if a interrupt happens between the set pointers and the block move instruction ? And this interrupt happens to shuffle memory ? LOCK THE HANDLES first ! ALWAYS ! > **myhandle.boundrect = myRect; > /* ^ or whatever the element name is */ Both Inside Mac and the TechNotes tell us no to change any fields in windows or GrafPorts directly. But since everybody's doing it, they won't DARE change anything :-) -- This is your fortune from h+@nada.kth.se: As you read the scroll, it vanishes...