Tuple enumeration without integers or strings
frame
frame86 at live.com
Sun Jan 3 06:05:48 UTC 2021
On Sunday, 3 January 2021 at 04:16:20 UTC, Paul Backus wrote:
> On Sunday, 3 January 2021 at 02:41:12 UTC, Paul wrote:
> hashOf is not guaranteed to produce unique values, so I would
> not advise using it here.
Of course it's a hashing method but also internally used for
comparison and good enough, at least in that example code. By
using an enum I don't assume there will be that much members to
take care of anyway. The hash is also generated at compile time.
More information about the Digitalmars-d-learn
mailing list