Bug 3999 and 4261

bearophile bearophileHUGS at lycos.com
Thu Sep 2 15:05:06 PDT 2010


>  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


More information about the Digitalmars-d mailing list