home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / lang / cplus / 16779 < prev    next >
Encoding:
Text File  |  1992-11-23  |  1.3 KB  |  28 lines

  1. Newsgroups: comp.lang.c++
  2. Path: sparky!uunet!pipex!warwick!bham!bhamvx!mccauleyba
  3. From: mccauleyba@vax1.bham.ac.uk (Brian McCauley)
  4. Subject: Re: Self Deletion
  5. Sender: usenet@rs6000.bham.ac.uk (USENET News Service)
  6. Message-ID: <1992Nov23.182513.1@vax1.bham.ac.uk>
  7. Date: Mon, 23 Nov 1992 18:25:13 GMT
  8. Lines: 16
  9. References: <1992Nov20.221751.2482@crd.ge.com>
  10. Organization: University of Birmingham
  11.  
  12. In article <1992Nov20.221751.2482@crd.ge.com>, jim@galifrey (Jim Weirich) writes:
  13.    [...]
  14. > The most straight forward way is have the window object delete
  15. > itself by saying "delete this;" inside the member function handling
  16. > the CLOSE button. This seems to work, but I wonder if it is proper to
  17. > delete an object while executing one of its member functions.
  18.  
  19. Self deletion is not uncommon in C++ so if it's unsafe I'd be very supprised.
  20. (Execpting of course the usual hazards with delete ;-> )
  21. -- 
  22.     \\   ( )    No Bullshit!     |  Email: B.A.McCauley@bham.ac.uk   
  23.  .  _\\__[oo        from         |  Voice: +44 21 471 3789 (home)
  24. .__/  \\ /\@    /~)  /~[   /\/[  |    Fax: +44 21 625 2175 (work)
  25. .  l___\\      /~~) /~~[  /   [  |  Snail: 197 Harborne Lane,
  26.  # ll  l\\    ~~~~ ~   ~ ~    ~  |         Birmingham, B29 6SS, UK
  27. ###LL  LL\\   (Brian McCauley)   |   ICBM: 52.5N 1.9W
  28.