Bug 24352 – std.format: 'r' format cannot be checked at compile time

Status
NEW
Severity
normal
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2024-01-22T08:55:15Z
Last change time
2024-12-01T16:42:17Z
Assigned to
No Owner
Creator
Georgy Markov
Moved to GitHub: phobos#10544 →

Comments

Comment #0 by ogion.art — 2024-01-22T08:55:15Z
Related: https://issues.dlang.org/show_bug.cgi?id=24351 ``` import std.format : format; int x = cast(int)'x'; auto s1 = format("%r", x); // Works auto s2 = format!"%r"(x); /* Error: reinterpreting cast from `int*` to `const(char)*` is not supported in CTFE */ ```
Comment #1 by robert.schadek — 2024-12-01T16:42:17Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/phobos/issues/10544 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB