[Issue 12100] __GENTYPE to generate ever different types

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Wed Apr 23 14:33:24 PDT 2014


https://issues.dlang.org/show_bug.cgi?id=12100

--- Comment #10 from Andrej Mitrovic <andrej.mitrovich at gmail.com> ---
(In reply to monarchdodra from comment #9)
> Yeah, but I'm saying that:
> import mod_a, mod_d;
> static assert(a != b);

One workaround for this is to encode the module name in the identifier (hence
why a string-based approach might be more useful than just a trait that returns
a number).

--


More information about the Digitalmars-d-bugs mailing list