When is exception throwing @nogc with -dip1008?

Per Nordlöw per.nordlow at gmail.com
Mon Jun 22 14:36:02 UTC 2020


On Monday, 22 June 2020 at 14:10:15 UTC, Mike Parker wrote:
> https://github.com/dlang/DIPs/blob/master/DIPs/other/DIP1008.md

The spec says:

"
The only place a refcounted Throwable is ever created is when the 
following statement is in the user code:

throw new E(string);
"

What other typical throw cases will _not_ be allocated on the GC?


More information about the Digitalmars-d-learn mailing list