This doesn't work
```d
nothrow void hello() {
try {
writeln("Hello, World!")
} catch (StdioException) {}
}
```
This doest work
```d
nothrow void hello() {
try {
writeln("Hello, World!")
} catch (Exception) {}
}
```
Why writeln can't be converted to nothrow with just catching of StdioException
partypooper via Digitalmars-d-learn Mon, 21 Feb 2022 02:51:29 -0800
Do I completely not understand what is `nothrow` or why I can't
make function nothrow with just catching StdioException?
- Why writeln can't be converted to noth... partypooper via Digitalmars-d-learn
- Re: Why writeln can't be converte... Basile B. via Digitalmars-d-learn
- Re: Why writeln can't be conv... Basile B. via Digitalmars-d-learn
- Re: Why writeln can't be ... bauss via Digitalmars-d-learn
- Re: Why writeln can't be conv... Basile B. via Digitalmars-d-learn
- Re: Why writeln can't be ... partypooper via Digitalmars-d-learn
- Re: Why writeln can't... Basile B. via Digitalmars-d-learn
- Re: Why writeln ... partypooper via Digitalmars-d-learn
- Re: Why writ... Basile B. via Digitalmars-d-learn
- Re: Why writeln ... Mike Parker via Digitalmars-d-learn
- Re: Why writ... partypooper via Digitalmars-d-learn
