I know little about C#, but what is garbage collection? It sounds like an interesting concept and I would like to understand it.
What is garbage collection?
Started by DevilsCharm, Nov 07 2007 05:47 PM
4 replies to this topic
#1
Posted 07 November 2007 - 05:47 PM
|
|
|
#2
Posted 08 November 2007 - 09:41 AM
Garbage collection is a language feature that takes care of cleaning up memory for you when pointers, etc go out of scope.
#3
Guest_Kaabi_*
Posted 09 November 2007 - 12:23 PM
Guest_Kaabi_*
Does C++ have that feature too? Is it very helpful?
#4
Posted 09 November 2007 - 05:28 PM
Managed C++ has the garbage collector. This is a MS Visual Studio thing. It frees the programmer from worrying about things such as deleting pointers and memory leaks.
#5
Posted 12 November 2007 - 09:39 AM
There are libraries that offer tools such as "smart pointers" to give C++ that functionality. It is not part of the language itself.


Sign In
Create Account


Back to top









