I would really like strong typing to be a built in feature. Would anyone else support this?
Re: Strong typing and physical units
Cecil Ward via Digitalmars-d-learn Tue, 28 Jul 2020 04:06:09 -0700
Of course, in C I used to do something like strong typing with an
opaque type achieved by using something like typedef struct
_something {} * type1; and then I had to do casting to get back
the real type, which was unchecked but it did prevent the user
from mixing up the types type1 and type2 say as they weren’t
assignment compatible.
- Strong typing and physical units Cecil Ward via Digitalmars-d-learn
- Re: Strong typing and physic... WebFreak001 via Digitalmars-d-learn
- Re: Strong typing and ph... Cecil Ward via Digitalmars-d-learn
- Re: Strong typing an... Cecil Ward via Digitalmars-d-learn
- Re: Strong typing an... Paolo Invernizzi via Digitalmars-d-learn
- Re: Strong typing and physic... Petar via Digitalmars-d-learn
- Re: Strong typing and ph... Cecil Ward via Digitalmars-d-learn