[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 15:57:01 UTC 2024
https://issues.dlang.org/show_bug.cgi?id=18304
Jack Stouffer <jack at jackstouffer.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|INVALID |---
--- Comment #2 from Jack Stouffer <jack at jackstouffer.com> ---
The point is that
void main() nothrow
{
import std;
int i = 0;
format!"%s"("This is a string");
}
doesn't work because exceptions are still thrown for checks that should be
happening at compile time. E.g. attribute inference cannot be done.
--
More information about the Digitalmars-d-bugs
mailing list