Enumeration Type-Safety in D

bearophile bearophileHUGS at lycos.com
Thu Nov 7 07:16:53 PST 2013


Nordlöw:

> to fail to compile because of D's otherwise strong static 
> type/range checking or at least give an RangeException when run.

cast() is designed to punch holes in the type system, so your 
code doesn't show problems in D. On the other hand see:
https://d.puremagic.com/issues/show_bug.cgi?id=3999

Bye,
bearophile


More information about the Digitalmars-d mailing list