Using a string generated at compile-time in a @nogc function

Mithun Hunsur via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Apr 30 22:28:36 PDT 2016


Hi all,

I'm working on removing the string mixins from my code, but have 
run into an issue:

http://dpaste.dzfl.pl/ecd7eb53947e

As far as I can tell, this should work; the enum should force 
compile-time execution (which it does, as evidenced by the 
pragma). I've worked around this by employing a string mixin, but 
it's not as clean:

http://dpaste.dzfl.pl/021c4a849b32

Any insight would be appreciated :)


More information about the Digitalmars-d-learn mailing list