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