fork download
  1. import std.stdio, std.typetuple;
  2.  
  3. void main() {
  4.  
  5. mixin(`
  6.  
  7. static args = TypeTuple!(42, "HELLO_WORLD_DELPHI", 1.5);
  8.  
  9. ++args[0];
  10. args[1] ~= "_FEST_DETECTED";
  11. args[2] *= 3;
  12.  
  13. void foo(int i, string s, real fl) {
  14.  
  15. writefln("%s %s %s %s", __FUNCTION__, i, s, fl);
  16. }
  17.  
  18. foo(args);
  19. `);
  20. }
Success #stdin #stdout 0s 4160KB
stdin
Standard input is empty
stdout
prog.main.foo 43 HELLO_WORLD_DELPHI_FEST_DETECTED 4.5