When is exception throwing @nogc with -dip1008?

Per Nordlöw per.nordlow at gmail.com
Mon Jun 22 13:59:22 UTC 2020


Under what circumstances is exception throwing currently `@nogc` 
if the dmd flag `-dip1008` is used?

For instance in code such as:

void main() @nogc
{
     throw new Exception("I'm @nogc now");
}

Are all exceptions forced to be statically allocated when 
-dip1008 is used or can exception throwing be `@nogc` only when 
certain conditions hold?

I can't find any docs on DIP-1008. The link

https://github.com/dlang/DIPs/blob/master/DIPs/DIP1008.md

given in the release notes here

Ref: https://dlang.org/changelog/2.079.0.html#dip1008

is broken.


More information about the Digitalmars-d-learn mailing list