Library Typedefs are fundamentally broken
Freddy via Digitalmars-d
digitalmars-d at puremagic.com
Tue Sep 16 19:57:02 PDT 2014
When you have separate 2 typedefs of the exact same type, they
are equal.While this maybe able to be solved with
Typedef!(Typedef!(...)) different modules typedef ing the same
type (most likely build-in types) would have their typedef be
equivalent thereby degrading the purpose of typedef.
---
import std.typecons;
alias meter = Typedef!float;
alias feet = Typedef!float;
static assert(!is(meter==feet));
---
Your thoughts?
More information about the Digitalmars-d
mailing list