RFC: std.uuid

Piotr Szturmaj bncrbme at jadamspam.pl
Fri Dec 23 16:31:46 PST 2011


Jonathan M Davis wrote:
> On Friday, December 23, 2011 23:09:32 Piotr Szturmaj wrote:
>> Johannes Pfau wrote:
>>> Related question to the SHA/MD5 hash functions: could those be pure?
>>
>> Weakly pure, yes - but for what?
>
> In general, if a function _can_ be pure, it _should_ be pure. If it can be and
> it isn't, it artificially restricts the types of functions which can call it.

Yes, Johannes probably want to mark uuid hash gen as pure. I just wanted 
to know if its something important as my code used memcpy which is impure.


More information about the Digitalmars-d mailing list