Bug 8320 – metastrings.Format and int array

Status
RESOLVED
Resolution
WONTFIX
Severity
normal
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-06-29T18:22:00Z
Last change time
2013-11-26T07:57:33Z
Assigned to
nobody
Creator
ellery-newcomer

Comments

Comment #0 by ellery-newcomer — 2012-06-29T18:22:46Z
Format does not properly format. code: import std.metastrings; void main() { static assert(false, Format!("abc %s", [1,2,3])); } produces: test.d(3): Error: static assert ['a','b','c',' ','\x01','\x02','\x03']
Comment #1 by andrej.mitrovich — 2012-12-26T15:36:24Z
Workaround: in 2.061 you can use format() from std.string at compile-time. In 2.060 you can use xformat() instead.
Comment #2 by yebblies — 2013-11-26T07:57:13Z
std.metastrings is deprecated, this won't be fixed.