Library Typedefs are fundamentally broken
Daniel Murphy via Digitalmars-d
digitalmars-d at puremagic.com
Sat Sep 20 10:06:11 PDT 2014
"Marco Leise" wrote in message
news:20140920155851.030b1633 at marco-leise.homedns.org...
> It has this nasty imperfection that it breaks as soon as you
> define two Typedefs on the same line. Which noone ever does
> except maybe for an obfuscated coding scenario, but still it
> raises my OCD level.
Or inside a template, but that breaks with an explicit cookie as well.
template Foo(T)
{
alias FooIndex = Typedef!(int, "FooIndex");
}
static assert(!is(Foo!int == Foo!string));
More information about the Digitalmars-d
mailing list