We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Here's a reproduction of the bug: struct OutputRange { void put(const(void)[] bytes) { import std.stdio; writeln(bytes); } } unittest { import std.range: put; OutputRange rng; put(rng, "Hello"); // Writes [72, 101, 108, 108, 111] as expected import std.algorithm: map; put(rng, "Hello".map!((dchar a)=>a)); // Writes the bytes internally representing the MapResult: [5, 0, 0, 0, 0, 0, 0, 0, 82, 175, 72, 34, 59, 86, 0, 0] }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
eyal reported this on 2019-11-21T14:45:32Z
Transfered from https://issues.dlang.org/show_bug.cgi?id=20412
Description
Here's a reproduction of the bug: struct OutputRange { void put(const(void)[] bytes) { import std.stdio; writeln(bytes); } } unittest { import std.range: put; OutputRange rng; put(rng, "Hello"); // Writes [72, 101, 108, 108, 111] as expected import std.algorithm: map; put(rng, "Hello".map!((dchar a)=>a)); // Writes the bytes internally representing the MapResult: [5, 0, 0, 0, 0, 0, 0, 0, 82, 175, 72, 34, 59, 86, 0, 0] }The text was updated successfully, but these errors were encountered: