I can has @nogc and throw Exceptions?

timotheecour timothee.cour2 at gmail.com
Thu Jul 19 16:26:31 UTC 2018


On Friday, 13 February 2015 at 19:03:10 UTC, Jonathan Marler 
wrote:
> This question comes from wanting to be able to throw an 
> exception in code that is @nogc.
>

https://dlang.org/changelog/2.079.0.html#dip1008
```d
void main() @nogc
{
     throw new Exception("I'm @nogc now");
}
```


More information about the Digitalmars-d-learn mailing list