Getting completely (I mean ENTIRELY) rid off GC

Andrey Lifanov via Digitalmars-d digitalmars-d at puremagic.com
Thu Sep 11 08:54:17 PDT 2014


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 <digitalmars-d at puremagic.com> 
> 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.


More information about the Digitalmars-d mailing list