Ambiguity issue with expanding and evaluating single template type parameter enums

Adam Ruppe destructionator at gmail.com
Mon Dec 27 23:04:40 UTC 2021


On Monday, 27 December 2021 at 21:21:30 UTC, data pulverizer 
wrote:
>   alias T = MyType!(INTEGER);

What is MyType?

>   enum code = "writeln(\"instance: \", adder(" ~
>               T.stringof ~ "(), " ~ U.stringof ~ "()" ~ "));";

And why is this a string mixin instead of a plain simple function?

prolly need more context....


More information about the Digitalmars-d-learn mailing list