J
James Kanze
[ ... ]It's still very much in a state of flux, but the last proposal I
saw provided for three cases: code which required garbage
collection, code which couldn't work with it, and code which was
garbage collection neutral. Presumably, the standard libraries,
and most third party libraries, would be designed to fall into
the last category. (Although I suspect that more than a few
implementations would offer two sets of libraries, one of which
required garbage collection, simply because something like
std::basic_string can be made a lot faster if you can count on
garbage collection being present.)The most recent draft I've looked at on it is N2287. It fairly
specifically does NOT say you can ever depend on GC being present.
The text from the garbage collection proposals hasn't made
it into the draft yet, at least as far as I can see. For that
matter, I think that the current state of the proposal is far
from final.
I know a lot of people really want garbage collection, and I know some
smart people have really put some hard work into it -- but when you get
down to it, trying to specify GC in terms of externally visible,
required behavior is nearly impossible.
In the same way that trying to specify free() or the operator
delete() function is. (Both can be no-ops in a conforming
implementation, but of course, that is neither the intent, nor
what we expect from a QoI point of view.)