[Issue 18790] can't put a const(char)[] into a char[]
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Apr 21 23:37:22 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=18790
Nicholas Wilson <iamthewilsonator at hotmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |iamthewilsonator at hotmail.co
| |m
--- Comment #2 from Nicholas Wilson <iamthewilsonator at hotmail.com> ---
dupe of https://issues.dlang.org/show_bug.cgi?id=18472 (see comment 10).
@JMDavies the problem is not that you can't `put(buf, "hello");`
but that formattedWrite does not force that to happen. Irrespective of the
intricacies of unicode and auto decoding
---
char[] buf = new char[100];
buf.formattedWrite("This is a number: %s", 5); // Error cannot put a
const(char)[] into a char[]
---
should work.
--
More information about the Digitalmars-d-bugs
mailing list