home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / lang / cplus / 11279 < prev    next >
Encoding:
Internet Message Format  |  1992-07-21  |  925 b 

  1. Path: sparky!uunet!sun-barr!cs.utexas.edu!wupost!uwm.edu!linac!att!att!allegra!alice!ark
  2. From: ark@alice.att.com (Andrew Koenig)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: C++ Return Types
  5. Message-ID: <23269@alice.att.com>
  6. Date: 21 Jul 92 22:30:37 GMT
  7. Article-I.D.: alice.23269
  8. References: <BrMJyE.FBM@watserv1.waterloo.edu> <1992Jul19.152207.1@cstp.umkc.edu> <23240@alice.att.com> <1992Jul21.112354.1@vax1.umkc.edu>
  9. Reply-To: ark@alice.UUCP ()
  10. Organization: AT&T Bell Laboratories, Liberty Corner NJ
  11. Lines: 10
  12.  
  13. In article <1992Jul21.112354.1@vax1.umkc.edu> kramasamy@vax1.umkc.edu writes:
  14.  
  15. >     If we adopt the second solution for the above class definition we run
  16. > into problems of deallocating 'ptr' thro' destructor and the calling routine will
  17. > get a garbage bitmap. How can we return for such cases?
  18.  
  19. By making sure the bitmap class has a properly defined copy constructor.
  20. -- 
  21.                 --Andrew Koenig
  22.                   ark@europa.att.com
  23.