Smart pointers instead of GC?

Leandro Lucarella leandro.lucarella at sociomantic.com
Tue Dec 25 07:33:27 PST 2012


On Tuesday, 25 December 2012 at 14:48:48 UTC, Sven Over wrote:
>> Phobos does rely on the GC to some extent. Most algorithms and 
>> ranges do not though.
>
> Running (library) code that was written with GC in mind and 
> turning GC off doesn't sound ideal.

It isn't if you care about memory leaks. And also bare in mind 
that some language constructs also relies on the GC, like some 
dynamic arrays operations (concatenation and appending for 
example). Right now is pretty hard to write D code that doesn't 
really use the GC at all.


More information about the Digitalmars-d mailing list