@gc attribute for bypassign @nogc
ag0aep6g via Digitalmars-d
digitalmars-d at puremagic.com
Thu Jul 28 14:07:22 PDT 2016
On 07/28/2016 10:46 PM, Lodovico Giaretta wrote:
> Also, the code of that maybe-not- at nogc library may not be available to
> check for this thing. Maybe the user doesn't want to trust the library
> writer, and so wants the compiler to guarantee no allocations at all.
If you can't check the code, you have to trust the library writer. One
can hack around @nogc as it is. It's not like dmd checks the object file
for GC allocations.
More information about the Digitalmars-d
mailing list