Why does D rely on a GC?

ketmar via Digitalmars-d digitalmars-d at puremagic.com
Mon Aug 18 13:47:42 PDT 2014


On Mon, 18 Aug 2014 19:43:13 +0000
maik klein via Digitalmars-d <digitalmars-d at puremagic.com> wrote:

> My initial question was why D uses the GC for everything.
to avoid unnecessary complications in user source code. GC is necessary
for some cool D features (it was noted ealier), and GC is first-class
citizen in D.

> Personally it would make more sense to me if D would use the GC 
> as a library.
D is not C++. besides, you can write your own allocators (oh, we need
more documentation on this) and avoid GC usage. so user *can* avoid GC
if he wants to. take a look at std.typecons and it's 'scoped', for
example.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20140818/9c9655b5/attachment.sig>


More information about the Digitalmars-d mailing list