The review of std.hash package

Johannes Pfau nospam at example.com
Thu Aug 9 02:53:04 PDT 2012


Am Thu, 09 Aug 2012 02:13:10 -0700
schrieb Walter Bright <newshound2 at digitalmars.com>:

> On 8/9/2012 2:05 AM, Johannes Pfau wrote:
> > http://dpaste.dzfl.pl/f86717f7
> 
> The Range argument - is it an InputRange, an OutputRange? While it's
> just a type name, the name should reflect what kind of range it is
> from the menagerie of ranges in std.range.
> 

It's an InputRange (of bytes) or an InputRange of some byte buffer
(ElementType == ubyte[] || ElementType == ubyte[num]). We get the
second version for free, so I just included it ;-)

The documentation would have to make that clear of course. I could also
change the name, it's just a proof of concept right now.


More information about the Digitalmars-d mailing list