fork download
  1. import std.stdio;
  2.  
  3. void print_type(A...)(A a)
  4. {
  5. foreach(T; A)
  6. writeln(typeid(T));
  7. }
  8.  
  9. void main()
  10. {
  11. print_type(1, 2.0, "3");
  12. }
  13.  
Success #stdin #stdout 0.02s 2076KB
stdin
Standard input is empty
stdout
int
double
immutable(char)[]