home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: sparky!uunet!mole-end!mat
- From: mat@mole-end.matawan.nj.us
- Subject: Re: Garbage Collection for C++
- Message-ID: <1992Aug21.082840.3703@mole-end.matawan.nj.us>
- Organization: :
- References: <1992Aug6.014619.2111@ucc.su.OZ.AU> <DAVEG.92Aug20043156@synaptx.synaptics.com>
- Date: Fri, 21 Aug 1992 08:28:40 GMT
- Lines: 42
-
- In article <DAVEG.92Aug20043156@synaptx.synaptics.com>, daveg@synaptics.com (Dave Gillespie) writes:
- > In article <1992Aug19.180252.12942@mole-end.matawan.nj.us> mat@mole-end.matawan.nj.us writes:
-
- > >> Is there really so much harm in allowing the C++ runtime
- > >> system to delete the object in that circumstance?
- >
- > > You've answered your own question in the negative. If the destructor
- > > has an effect on the program's output, and it is accidentally called
- > > by the GC instead of by its proper deletion, the program's output will
- > > depend on the exact properties of the GC system and ...
-
- > Sorry, I didn't make myself clear. I realize that allowing GC to call
- > a destructor would add one more case where destructors with side effects
- > could surprise the C++ programmer. My question was, is that potential
- > for surprise enough to kill the idea of garbage collection in C++?
-
- > My answer is no, it just means C++ programmers who use garbage collection
- > have to be a little careful about what they put in their destructors.
-
- `A little careful about what they put in their destructors.'
- (Picture this said with dripping, oozing sarcasm.)
-
- If you look at where OOA and OOD are going, and what they are talking
- about, you may observe that they talk about things called `relationships.'
- These relationships have something called `cardinality,' and they describe
- what does and does not exist--and in the better models, when.
-
- To model these OOA and OOD things in OOP (as we should) we have to control
- what does and does not exist--or we have to fake it by introducing an
- indirect representation of Object existance.
-
- I've neither seen nor heard a proposal for a workable, maintainable,
- practical, economical way of representing Object existance--other than
- object existance. (Note the difference in capitalization, please.)
-
- It is this that underlies almost all of the problems with databases
- and persistance.
- --
- (This man's opinions are his own.)
- From mole-end Mark Terribile
-
- mat@mole-end.matawan.nj.us, Somewhere in Matawan, NJ
-