digitalmars.D.bugs - [Issue 18101] New: allow Tuple for BetterC
- d-bugmail puremagic.com (32/32) Dec 18 2017 https://issues.dlang.org/show_bug.cgi?id=18101
https://issues.dlang.org/show_bug.cgi?id=18101 Issue ID: 18101 Summary: allow Tuple for BetterC Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: major Priority: P1 Component: phobos Assignee: nobody puremagic.com Reporter: changlon gmail.com =============== code =============== import std.typecons : Tuple; alias BOMSeq = Tuple!(int, "schema"); extern(C) int main(){ return 0; } ========================= ../src/phobos/std/range/primitives.d(405): Error: static assert "Cannot put a const(char)[] into a Appender!string." ../../src/phobos/std/format.d(1172): instantiated from here: put!(Appender!string, const(char)[]) ./../src/phobos/std/format.d(473): instantiated from here: writeUpToNextSpec!(Appender!string) ../../src/phobos/std/format.d(5831): instantiated from here: formattedWrite!(Appender!string, char, ulong, ulong) ../../src/phobos/std/typecons.d(542): instantiated from here: format!(char, ulong, ulong) test.d(4): instantiated from here: Tuple!(int, "schema") --
Dec 18 2017