Mac Apps That Use Garbage Collection Must Move to ARC
Benjamin Thaut via Digitalmars-d
digitalmars-d at puremagic.com
Thu Feb 26 23:09:20 PST 2015
Am 27.02.2015 um 00:05 schrieb deadalnix:
>
> Note that in D, you have union and all kind of crap like that, so what
> is writing a pointer is non obvious and so the tradeof is very different
> than it is in other languages.
To have any chance of implementing a better GC in D I would simly start
of with assuming all code is @safe. For code that is not @safe the user
would have to make sure it plays nice with the GC. This would also apply
to unions which contain pointer types. If you wan't to write a good GC
that does support non @safe features without user input you don't even
have to start in my opinion.
More information about the Digitalmars-d
mailing list