On 07/28/2016 10:46 PM, Lodovico Giaretta wrote:
Also, the code of that maybe-not-@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.

Reply via email to