home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: sparky!uunet!mcsun!sun4nl!relay.philips.nl!prle!kuiper
- From: kuiper@prl.philips.nl (Krijn Kuiper 44381)
- Subject: Re: Deleting NIHCL Objects
- Message-ID: <1992Sep11.123033.283@prl.philips.nl>
- Keywords: virtual destructors
- Sender: news@prl.philips.nl (USENET News System)
- Organization: none
- References: <1992Sep9.110455.17143@etn.ericsson.se>
- Date: Fri, 11 Sep 1992 12:30:33 GMT
- Lines: 20
-
- In article <1992Sep9.110455.17143@etn.ericsson.se> bjs@etn.ericsson.se (Bj|rn S{ter|y 1342) writes:
-
- > i soon found out that deleting the set though ~Set destructor
- > did not delete the objects in the set. i therefore tried to
-
- thank god ~Set keeps its hands off, suppose you had several
- references to one object in different sets!
-
- > most everything else about NIHCL seems very well designed, and i
- > can accept the fact that deleting the Set not automatically deletes
- > the individual objects, but the non virtual ~Object "feature" surprised
- > me.
- > i am hesitant to modify the NIHCL source code to make the ~Object
- > is it possible to "fix" (i.e. by just making the ~Object virtual)?
-
- yes, I did and it did not harm and gave no significant performance loss.
-
- Krijn Kuiper
- Philips Research Laboratories
- Eindhoven - The Netherlands
-