@leorize:

> Nim's version of bit flags is set[T], which is why enum with holes is not 
> needed here.

Ah, I had missed that! Indeed, this is a cleaner approach than ORing and 
ANDing. Maybe a binary enum could be added as syntactic sugar to define the 
same in a less verbose manner then (at least, for single byte flags).

@Stefan_Salewski: thanks for the exhaustive examples, they're really helpful.

Reply via email to