How do you debug @safe @nogc code? Can't figure out how to print.

Stanislav Blinov stanislav.blinov at gmail.com
Sat Nov 17 14:06:19 UTC 2018


On Saturday, 17 November 2018 at 13:55:24 UTC, aliak wrote:

> You can use "debug blah" to hide inside functions that are 
> attributed, but when you have an attributed function that calls 
> a template, attribtues of which are supposed to be inferred, it 
> seems to fail.
>
> Maybe a bug if it's supposed to work?

Indeed that fails, and I would say that's a bug. If it's allowed 
in @nogc, it shouldn't then infer to non- at nogc when not 
explicitly attributed. Maybe debug blocks should outright be 
skipped when inferring?..


More information about the Digitalmars-d-learn mailing list