std.uuid is ready for review

Johannes Pfau nospam at example.com
Wed Feb 8 09:38:29 PST 2012


Am Tue, 07 Feb 2012 06:54:49 -0800
schrieb bls <bizprac at orange.fr>:

> On 02/02/2012 01:26 PM, Johannes Pfau wrote:
> > Hi,
> >
> > std.uuid is ready to be reviewed. As far as I know there's nothing
> > being reviewed right now, so we could start the review as soon as
> > a review manager has been found.
> >
> > About std.uuid (copied from the module documentation):
> > ---------------------
> > This is a port of boost.uuid from the boost project with some minor
> > additions and API changes for a more D-like API. A UUID, or
> > Universally unique identifier, is intended to uniquely identify
> > information in a distributed environment without significant
> > central coordination. It can be used to tag objects with very short
> > lifetimes, or to reliably identify very persistent objects across a
> > network. UUIDs have many applications. [...]
> > ---------------------
> >
> > Code: https://github.com/jpf91/phobos/blob/std.uuid/std/uuid.d
> > API-Docs: http://dl.dropbox.com/u/24218791/d/src/uuid.html
> >
> > Note: The code and documentation for shaUUID has already been
> > written, but until phobos has support for SHA1, that can't be
> > included. The code is currently commented out in the source file
> > (it's well tested with some 3rd party SHA1 code), but the
> > documentation for those functions is included in the API-docs. I
> > think those functions should be reviewed as well, so that it's
> > possible to add them to phobos with a simple pull request at a
> > later date.
> >
> > Note2: std.uuid also need this pull request:
> > https://github.com/D-Programming-Language/phobos/pull/398
> > It adds a isRandomNumberGenerator template to detect if a template
> > parameter is a random-number generator type.
> >
> >
> >
> 
> Vote + (yes, works fine)
> 
> I want it and I need it. A Databases Access Layer (may it be a full 
> blown  ORM  or even "just" a (D)ata (A)ccess (L)ayer ) depends on
> having unique IDs. ?
> 
> A convenience wish : string OID = GetUUID(); // RA UUID
> 

Sorry, I don't understand that example. What should GetUUID() return? a
Random UUID? What is the difference to randomUUID() then?


More information about the Digitalmars-d mailing list