[Issue 18304] std.format functions with compile time format strings should be nothrow
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Apr 23 12:28:46 UTC 2024
https://issues.dlang.org/show_bug.cgi?id=18304
basile-z <b2.temp at gmx.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |b2.temp at gmx.com
Resolution|--- |INVALID
--- Comment #1 from basile-z <b2.temp at gmx.com> ---
Why the heck would they have to be ?
```
void main()
{
import std;
int i = 0;
format!"%s"((){if (!i) throw new Exception("oops"); return "helloho";
}()).writeln;
}
```
just let attribute inference do the job.
--
More information about the Digitalmars-d-bugs
mailing list