On Thursday, 11 September 2014 at 15:39:26 UTC, ketmar via
Digitalmars-d wrote:
On Thu, 11 Sep 2014 15:23:53 +0000
Andrey Lifanov via Digitalmars-d <[email protected]>
wrote:
is that in case of manual memory management I know completely
when and what will be freed or allocated (with the help of
smart pointers/reference counting, of course).
but you don't. you can only estimate, that's all. what if you
passing
refcounted object to another function which stores it
somewhere? oops.
What do you mean? Some sort of memory leak? I guess, you can
always write programs, no matter with or without GC, that will
steal or hide stuff. As usual countermeasures, you just have to
carefully plan single storage/multiple users code.