Re: SGCL - Garbage Collector for C++
On Mar 1, 12:24 am, Sam <s...@email-scan.com> wrote:
Richard Herring writes:
In message <cone.1204246382.29097.21741....@commodore.email-scan.com>,
Sam <s...@email-scan.com> writes
Sebastian Nibisz writes:
Garbage collection is for lazy rich folks who can't be bothered to
take out their own trash.
It's funny.
It's true. If you do not have the skills and the know-how to keep track
of your own objects, and manage their lifetime,
... or if you think garbage collection is about lifetime management ...
Let me know when you figure out why, in Java, you have to
throw all these try/catch blocks around, every time you need
to deal with files or sockets,
Because Java doesn't have local objects or destructors. Which
has nothing to do with garbage collection.
in order not to run out of available file descriptors.
In Java, you use try/catch blocks, and in C++, you use
destructors. Garbage collection has nothing to do with the
issue.
--
James Kanze (GABI Software) email:james.kanze@gmail.com
Conseils en informatique orient=E9e objet/
Beratung in objektorientierter Datenverarbeitung
9 place S=E9mard, 78210 St.-Cyr-l'=C9cole, France, +33 (0)1 30 23 00 34