```d
import std;
void main()@nogc
{
try{
__gshared a = new Exception("help");
scope b = a;
throw b;
}
catch(Exception e){
printf("caught");
}
}
```
Drawbacks of exceptions being globally allocated
Tejas via Digitalmars-d-learn Sat, 14 Aug 2021 04:45:45 -0700
What is the drawback of the following "simple" ```@nogc```
exception creation technique?
- Drawbacks of exceptions being g... Tejas via Digitalmars-d-learn
- Re: Drawbacks of exception... Tejas via Digitalmars-d-learn
- Re: Drawbacks of excep... Alexandru Ermicioi via Digitalmars-d-learn
- Re: Drawbacks of e... Tejas via Digitalmars-d-learn
- Re: Drawbacks ... Paul Backus via Digitalmars-d-learn
- Re: Drawb... Tejas via Digitalmars-d-learn
- Re: Drawbacks of exception... Ali Çehreli via Digitalmars-d-learn
- Re: Drawbacks of excep... Tejas via Digitalmars-d-learn
- Re: Drawbacks of e... Tejas via Digitalmars-d-learn
- Re: Drawbacks of e... Mathias LANG via Digitalmars-d-learn
- Re: Drawbacks ... Tejas via Digitalmars-d-learn
