home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / mac / programm / 21313 < prev    next >
Encoding:
Text File  |  1993-01-12  |  1.4 KB  |  46 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!stanford.edu!kronos.arc.nasa.gov!joshr
  3. From: joshr@kronos.arc.nasa.gov (Joshua Rabinowitz-Summer-91)
  4. Subject: Re: TCL: Bizzare Behavior Time
  5. Message-ID: <1993Jan12.210150.26517@kronos.arc.nasa.gov>
  6. Sender: usenet@kronos.arc.nasa.gov (Will Edgington, wedgingt@ptolemy.arc.nasa.gov)
  7. Nntp-Posting-Host: mcc2.arc.nasa.gov
  8. Organization: NASA/ARC Information Sciences Division
  9. References: <1993Jan11.170231.17969@fsl.noaa.gov> <1993Jan11.220137.26434@kth.se>
  10. Date: Tue, 12 Jan 1993 21:01:50 GMT
  11. Lines: 33
  12.  
  13. In article <1993Jan11.220137.26434@kth.se> d88-jwa@byse.nada.kth.se (Jon WΣtte) writes:
  14. >In <1993Jan11.170231.17969@fsl.noaa.gov> urban@yoda.fsl.noaa.gov (Art Urban) writes:
  15. >
  16. >
  17. >Well, you might get memory movement, and then assign a
  18. >member variable of an object that moves? Something like:
  19. >
  20. ...... [stuff deleted] ....
  21.  
  22. >
  23. >The call to new is risky unless you have locked the
  24. >object doing the call; try an intermediate temp variable:
  25. >
  26. >CFoo :: DoFoo ( )
  27. >{
  28. >    CBar * aBar = new CBar ;
  29. >
  30. >    theBar = aBar ;
  31. >}
  32.  
  33.  
  34.  
  35. Is this for real?  I do remeber seeing this, and it makes sense,
  36. but in my rather large TCL program I do this NOT ONCE, 
  37. have run it under heap scrambling, and have had
  38. no problems.  
  39. >Cheers,
  40.  
  41. -- 
  42. ----------------------------------
  43. #include <std/disclaimer.h>     Josh Rabinowitz, Mac TCL programmer
  44. joshr@kronos.arc.nasa.gov
  45. "Me lost my cookie at the disco." -- Cookie Monster
  46.