home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / lang / cplus / 12359 < prev    next >
Encoding:
Text File  |  1992-08-14  |  1.7 KB  |  42 lines

  1. Newsgroups: comp.lang.c++
  2. Path: sparky!uunet!news.mentorg.com!bcannard
  3. From: bcannard@hppcb36.mentorg.com (Bob Cannard @ PCB x5565)
  4. Subject: Re: Garbage Collection for C++
  5. Originator: bcannard@hppcb36
  6. Sender: news@news.mentorg.com (News User)
  7. Message-ID: <1992Aug15.005542.3104@news.mentorg.com>
  8. Date: Sat, 15 Aug 1992 00:55:42 GMT
  9. References: <1992Aug13.153211.16572@ericsson.se> <1992Aug14.101226.6929@ericsson.se>
  10. Nntp-Posting-Host: hppcb36.mentorg.com
  11. Organization: Mentor Graphics 
  12. Keywords: 
  13. Followup-To: 
  14. Lines: 26
  15.  
  16.  
  17. In article <1992Aug14.101226.6929@ericsson.se>, jonas@beppe.ericsson.se (Jonas Nygren) writes:
  18. |> I do not know if this really went out. So I am reposting my own article.
  19. |> /jonas
  20. |> 
  21. |> In article 16572@ericsson.se, jonas@beppe.ericsson.se (Jonas Nygren) writes:
  22. [snip]
  23. |> > I am experimenting with a reference counting scheme where the ref-counter is
  24. |> > placed in a class 'object', which every class that want to be shared must
  25. |> > inherit. To work with multipel inheritance class 'object' should be declared
  26. |> > public virtual. Class 'object' also has the information wether the object was
  27. |> > dynamically allocated or not. 
  28. [snip]
  29.  
  30. Reference counting suffers serious drawbacks:
  31.  
  32. 1. It can't handle cyclic data structures
  33.  
  34. 2. It is one of the most inefficient forms of garbage collection known to man.
  35.  
  36. The main reason I'm pushing for true garbage collection is that I consider
  37. reference counting (which I already have) to be an unacceptably poor solution.
  38. -- 
  39. bob_cannard@mentorg.com         "Human beings? ... Well, I suppose they are a
  40.                                  form of life, even if they are unspeakable"
  41. Exprssed opinions are not necessarily those of Mentor Graphics Corporation.
  42.