On Thursday, July 04, 2013 22:46:12 Mehrdad wrote: > On Thursday, 4 July 2013 at 19:51:34 UTC, Jonathan M Davis wrote: > > It's perfectly possible to implement a GC - even D's GC - in > > C++. > > I don't see how. > > There is no way to inspect the stack, static data segments, etc. > for GC roots in standard C++. > > How would you possibly be able to find the roots?
By putting all of the same information there that we have in D. It may be clunkier to do in D and generally more of a pain, but you have just as much control over memory in C++ as you do in D. And C++ GCs _do_ exist, even if they're not the norm. - Jonathan M Davis