libgmp deimos library

Mike Parker via Digitalmars-d digitalmars-d at puremagic.com
Wed Jan 11 18:12:01 PST 2017


On Wednesday, 11 January 2017 at 23:12:30 UTC, Nordlöw wrote:
> On Wednesday, 11 January 2017 at 22:19:58 UTC, Andrew Hall 
> wrote:
>> also, why nogc?
>
> Because C-functions never use the D garbage collector :)

They should also be marked nothrow. That and @nogc should 
generally be applied to all C function bindings, but pure only on 
those which actually are pure.


More information about the Digitalmars-d mailing list