| Article: |
Modern Memory Management | |
| Subject: | C++ has garbage collection? | |
| Date: | 2005-11-08 09:53:29 | |
| From: | Lunchy | |
|
"You must be most careful with C, where you control all memory allocation and freeing. Languages such as C++, Java, Perl, and PHP take care of a lot of the housekeeping automatically."
|
||
Showing messages 1 through 1 of 1.
-
C++ has garbage collection?
2005-11-08 11:18:49 orichy [View]



It's true that C++ has no garbage collection by default but it has RAII. And i think what the author wanted to say is that in C++ you rarely use new/delete, compared to malloc/free in C because C++ has a good standard library offering all containers one could ever need. :-)
BTW: The author never states, C++ had any gc as you seem to imply.
Regards