std.uuid is ready for review

Piotr Szturmaj bncrbme at jadamspam.pl
Mon Feb 6 15:00:26 PST 2012


Johannes Pfau wrote:
> Code: https://github.com/jpf91/phobos/blob/std.uuid/std/uuid.d
> API-Docs: http://dl.dropbox.com/u/24218791/d/src/uuid.html

<snip>
@trusted UUID shaUUID(const(char[]) name, UUID namespace = nilUUID);
@trusted UUID shaUUID(const(ubyte[]) data, UUID namespace = nilUUID);
</snip>

When casting from void[] to ubyte[] will be working in CTFE (if ever), 
you might use just one function taking const(void[]) and cast it to 
ubyte[] internally.

About name, I think it should be sha1UUID.


More information about the Digitalmars-d mailing list