randomUUID for runtime / how to generate UUIDs in runtime

via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Apr 18 04:23:17 PDT 2015


On Friday, 17 April 2015 at 19:17:32 UTC, Jesse Phillips wrote:
> On Friday, 17 April 2015 at 14:05:26 UTC, Ozan Süel wrote:
...
> You'll need to use a constructor:
> this() {
>     myid = randomUUID();
> }

That's it. Thanks Ali & Jesse.
I have to put it in a constructor.

Regards,
Ozan


More information about the Digitalmars-d-learn mailing list