home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / mac / programm / 21320 < prev    next >
Encoding:
Internet Message Format  |  1993-01-12  |  1.4 KB

  1. Path: sparky!uunet!ogicse!reed!bowman
  2. From: bowman@reed.edu (BoBolicious)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Re: C array question
  5. Message-ID: <1993Jan12.225253.4470@reed.edu>
  6. Date: 12 Jan 93 22:52:53 GMT
  7. Article-I.D.: reed.1993Jan12.225253.4470
  8. References: <C0prG1.AsC@plato.ds.boeing.com> <1993Jan12.204011.26034@kronos.arc.nasa.gov>
  9. Organization: Reed College, Portland, OR
  10. Lines: 22
  11.  
  12. In article <1993Jan12.204011.26034@kronos.arc.nasa.gov> joshr@kronos.arc.nasa.gov (Joshua Rabinowitz-Summer-91) writes:
  13. >In article <C0prG1.AsC@plato.ds.boeing.com> housen@plato.ds.boeing.com (Kevin housen/.na) writes:
  14.  
  15. >> [Discussion about 2-d arrays omitted]
  16.  
  17. >If you use NewHandle, you will have to lock them and only deal with 
  18. >thier de-referenced ptrs.  This is no gain.
  19.  
  20. Huh?!?  Most of the time, it makes sense to use handles, particularly if the
  21. the arrays are big or there are lots of other things going on.  Then when you
  22. need to access a particular row, you lock it down and dereference into a local
  23. pointer.  For anything real, it's well worth the effort, and with little
  24. performance loss.
  25.  
  26. I changed the Distribution: to "world"  That's where we live folks, it's more
  27. than just "usa".
  28.  
  29. cheers,
  30. bobo              In seeking the unattainable,
  31. bowman@reed.edu            simplicity only gets in the way.
  32. "On Monday, numbers floated everywhere, and the world was full of 
  33. approximations."  -- Spencer Heinz, _The Oregonian_, 1/5/93
  34.