fork(1) download
  1. import std.stdio, std.typetuple;
  2.  
  3. void main() {
  4.  
  5. auto args = TypeTuple!(2, "boo", 35.1L);
  6.  
  7. void foo(int n, string s, real d) {
  8. writefln("%s %s %s", n, s, d);
  9. }
  10.  
  11. foo(5, "test", 45.5L);
  12. foo(args);
  13. }
Success #stdin #stdout 0s 4116KB
stdin
Standard input is empty
stdout
5 test 45.5
2 boo 35.1