[Issue 16947] std.digest should work for output ranges
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Wed Dec 7 15:13:27 PST 2016
https://issues.dlang.org/show_bug.cgi?id=16947
John Colvin <john.loughran.colvin at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |john.loughran.colvin at gmail.
| |com
Hardware|x86_64 |All
Summary|The digest function calls |std.digest should work for
|the put function |output ranges
|incorrectly. |
OS|Windows |All
Severity|normal |enhancement
--- Comment #1 from John Colvin <john.loughran.colvin at gmail.com> ---
The documentation says that a digest must implement a put function that takes a
variadic number of individual ubytes or a ubyte array. This is a stronger
requirement than being an output range for ubyte and ubyte[].
It is possible to argue that std.digest should work for output ranges in
general, but that's an enhancement request. It probably wouldn't be a lot of
work to implement, but you might be the only person for whom it's a priority...
If you found the documentation confusing or lacking, please feel free to make a
pull request to improve it.
If you found the error message confusing or lacking, that's also something that
can probably be easily improved, or at least explicitly reported here.
--
More information about the Digitalmars-d-bugs
mailing list