The review of std.hash package

Dmitry Olshansky dmitry.olsh at gmail.com
Wed Aug 15 01:25:50 PDT 2012


On 15-Aug-12 12:17, Kagamin wrote:
> On Wednesday, 15 August 2012 at 08:13:27 UTC, Dmitry Olshansky wrote:
>> AFAIK it'a method of HashAlgorithm Object.
>
> It's a minor design detail, see the example: the method is called on
> each file without any explicit preparations and without calls to methods
> like TransformBlock. That's how stateless computation usually looks -
> it's just done and that's all.

Brrr. It's how convenience wrapper works :)

And I totally expect this to call the same code and keep the same state 
during the work.

E.g. see std.digest.digest functions digest or hexDigest you could call 
it stateless in the same vane.


More information about the Digitalmars-d mailing list