Modern Memory Management
Subject:   C++ has garbage collection?
Date:   2005-11-09 06:07:51
From:   orichy
Response to: C++ has garbage collection?

Hehe, well, it seems that PHP does indeed have GC, using reference counting. But i wouldn't call it true GC because it's not much different from using shared_ptr in C++, and it has the same problem with cyclic references:

BTW: Even though i wouldn't use it, i would like C++ to get GC because that would mean more C++ programmers. :-)


Full Threads Newest First

Showing messages 1 through 1 of 1.

  • C++ has garbage collection?
    2006-01-14 18:02:49  evanh [View]

    I'm of the opinion that C++'s memory and speed problems stem mainly from it's terrible standard libraries. Same goes for Java. I can't speak for the other languages having never used a desktop app written with one of them to compare with C.