automate tuple creation

bauss jj_1337 at live.dk
Thu Jan 20 10:11:10 UTC 2022


On Thursday, 20 January 2022 at 04:00:59 UTC, forkit wrote:
> On Thursday, 20 January 2022 at 00:30:44 UTC, H. S. Teoh wrote:
>>
>> Do the id's have to be unique?
>
> yep...
>

Don't make them random then, but use an incrementor.

If you can have ids that aren't integers then you could use uuids 
too.

https://dlang.org/phobos/std_uuid.html



More information about the Digitalmars-d-learn mailing list