@nogc exceptions?

Manu turkeyman at gmail.com
Sun May 19 05:05:32 UTC 2019


On Sat, May 18, 2019 at 9:55 PM Nicholas Wilson via Digitalmars-d
<digitalmars-d at puremagic.com> wrote:
>
> On Sunday, 19 May 2019 at 04:24:39 UTC, Manu wrote:
> > What's the story with @nogc exceptions?
> > There was DIP1008 or whatever, I didn't follow it because I
> > never use
> > exceptions... but I kinda need it.
>
> It used to not work, but it does now.

Okay...How do I do it? I just get:
  throw new Exception("ex");
  > error : cannot use `new` in `@nogc` function


More information about the Digitalmars-d mailing list