>  the type system doesn't help you enforce it is a true combination of the 
> flags instead of a generic number

I have used std.bitmanip.bitfields some time, and in my opinion its best 
quality is its overflow tests. They have caught few of my bugs (it's easy to 
overflow such little numbers). It's also another good example why having 
runtime integer overflow tests is a Good Thing.

Bye,
bearophile

Reply via email to