Thread overview
[Issue 16947] std.digest should work for output ranges
Dec 07, 2016
John Colvin
Dec 23, 2016
lempiji@gmail.com
Dec 27, 2016
greenify
Dec 17, 2022
Iain Buclaw
December 07, 2016
https://issues.dlang.org/show_bug.cgi?id=16947

John Colvin <john.loughran.colvin@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |john.loughran.colvin@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@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.

--
December 23, 2016
https://issues.dlang.org/show_bug.cgi?id=16947

--- Comment #2 from lempiji@gmail.com ---
Thanks for the response.
I understand that this is a rare request.

I reported that it would be should to accept a general OutputRange, but I think that it is a low priority problem.

I would like to make a pull request when improvement is needed.

--
December 27, 2016
https://issues.dlang.org/show_bug.cgi?id=16947

greenify <greeenify@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |greeenify@gmail.com
           Assignee|nobody@puremagic.com        |lempiji@gmail.com

--- Comment #3 from greenify <greeenify@gmail.com> ---
>>  It probably wouldn't be a lot of work to implement, but you might be the only person for whom it's a priority...
> I would like to make a pull request when improvement is needed.

Please do so :)

--
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=16947

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P1                          |P4

--
December 01
https://issues.dlang.org/show_bug.cgi?id=16947

--- Comment #4 from dlangBugzillaToGithub <robert.schadek@posteo.de> ---
THIS ISSUE HAS BEEN MOVED TO GITHUB

https://github.com/dlang/phobos/issues/10210

DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB

--