home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / mac / programm / 14497 < prev    next >
Encoding:
Internet Message Format  |  1992-08-25  |  1.6 KB

  1. Path: sparky!uunet!dtix!darwin.sura.net!wupost!gumby!kzoo!k044477
  2. From: k044477@hobbes.kzoo.edu (Jamie R. McCarthy)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Re: dereferencing Handles( was Re: incrementation differences...)
  5. Message-ID: <1992Aug25.201711.19303@hobbes.kzoo.edu>
  6. Date: 25 Aug 92 20:17:11 GMT
  7. References: <1992Aug25.150911.19008@bnr.ca> <1992Aug25.161818.8069@hobbes.kzoo.edu> <1992Aug25.182750.13186@qualcomm.com>
  8. Organization: Kalamazoo College
  9. Lines: 25
  10.  
  11. sdorner@qualcom.qualcomm.com (Steve Dorner) writes:
  12. >k044477@hobbes.kzoo.edu (Jamie R. McCarthy) writes:
  13. >>Unless you call Toolbox routines
  14. >>that move memory, the block will never move.
  15. >
  16. >1. Don't trust any list of toolbox routines that supposedly don't move
  17. >memory.  People patch stuff, and s**t happens.  Code defensively.
  18.  
  19. While I admit to not having considered this, it seems to me that anyone
  20. who applies a memory-moving patch to a non-memory-moving trap is a
  21. Miscreant In The First Degree.  A lot of interrupt code relies on those
  22. appendices being right!  I mean, yeah, I'm all in favor of defensive
  23. coding, but this is going a little too far...
  24.  
  25. Or am I out of touch, and people have been doing this for years?
  26.  
  27. >2. Be aware that function calls to an unloaded segment may move memory,
  28. >(division of longs on 68000's is one such...)
  29.  
  30. Ouch.  A painfully good example.
  31. -- 
  32.  Jamie McCarthy      Internet: k044477@kzoo.edu      AppleLink: j.mccarthy
  33.  "It's bad enough to send a rude message to another via such an anonymous
  34.   channel [as email].  To flame someone on an open forum is, to me, the
  35.   height of insensitivity."                                 - P.J. Plauger
  36.