Compile time only delegates

Philippe Sigaud philippe.sigaud at gmail.com
Tue Mar 25 13:15:10 PDT 2014


This works for me (2.064):

import std.stdio : writeln;

void main() {
  mixin({ return "int x;"; }());
  writeln(x);
}


More information about the Digitalmars-d-learn mailing list