Re: SmartPointer & Inheritance & Explicit Constructors
On Jun 20, 5:08 am, "Chris Thomasson" <cris...@comcast.net> wrote:
"Erik Wikstr=F6m" <Erik-wikst...@telia.com> wrote in message
[...]
That seems to be a sentiment that the standards committee shares with y=
ou,
so never fear.
Well, I think they have to keep the GC optional. If the force a low-level
systems language to use a GC, then it would not longer be all that
"practical" for __low-level__ operating system design...
I think that it's generally agreed that you should be able to
write a garbage collector in C++. Since you obviously can't use
garbage collection to implement the collector (without getting
endless recursion)...
But that's true for a lot of things already: std::vector can't
use std::vector in it's implementation, for example, but can
definitly be written in C++.
With regards to "optional": it depends on what you mean. There
is certainly no movement to force people to use garbage
collection where it isn't appropriate. On the other hand, I do
think that it should be required that a hosted implementation
support it---it's not optional for the implementation.
--
James Kanze (GABI Software, from CAI) email:james.kanze@gmail.com
Conseils en informatique orient=E9e objet/
Beratung in objektorientierter Datenverarbeitung
9 place S=E9mard, 78210 St.-Cyr-l'=C9cole, France, +33 (0)1 30 23 00 34