home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / mac / programm / 14504 < prev    next >
Encoding:
Text File  |  1992-08-25  |  1.5 KB  |  38 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!decwrl!concert!sas!mozart.unx.sas.com!studly.mac.sas.com!Michael_Hecht
  3. From: Michael Hecht <Michael_Hecht@mac.sas.com>
  4. Subject: Re: incrementation differences/THINK C 4.0 vs. 5.0
  5. Sender: news@unx.sas.com (Noter of Newsworthy Events)
  6. Message-ID: <BtK2GL.HM5@unx.sas.com>
  7. X-Useragent: Nuntius v1.1.1d9
  8. Date: Tue, 25 Aug 1992 20:05:08 GMT
  9. X-Xxdate: Tue, 25 Aug 92 21:05:40 GMT
  10. X-Xxmessage-Id: <A6C00AD44801050A@studly.mac.sas.com>
  11. References: <1992Aug24.221630.4730@Csli.Stanford.EDU> <1992Aug25.150911.19008@bnr.ca> <1992Aug25.161818.8069@hobbes.kzoo.edu> <1992Aug25.174228.17601@natinst.com>
  12. Nntp-Posting-Host: studly.mac.sas.com
  13. Organization: SAS Institute Inc.
  14. Lines: 22
  15.  
  16. In article <1992Aug25.174228.17601@natinst.com> Stepan Riha,
  17. stepan@natinst.com writes:
  18. >>|>nxtWrd(char **theDataPtr, char *lab, int  tabs)
  19. [...]
  20. >
  21. >>[It seems that]
  22. >>once theDataPtr is dereferenced and copied into temp, this leaves him
  23. >>open to the great disappearing memory trick...
  24.  
  25. You're all assuming that theDataPtr is a Handle. It may just be a pointer
  26. that was passed by reference (as its name implies), in which case the
  27. point is moot.
  28.  
  29. --Michael
  30.  
  31. PS: I hear that in C++ you can better express "pass by reference," which
  32. would help with this sort of confusion.
  33. Something like "Ptr &theDataPtr"?
  34.  
  35. =======================================================================
  36. Michael P. Hecht                 | Internet:  Michael_Hecht@mac.sas.com
  37. SAS Institute Inc.; Cary, NC USA | AppleLink: SAS.HECHT
  38.