Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import std.stdio;
- void print( Args... )( Args args )
- {
- static foreach( arg ; args )
- writeln( arg );
- }
- void main()
- {
- print(1, "test", [1,2,3]);
- /*internally expand to:
- writeln(1);
- writeln("test");
- writeln([1,2,3]);
- */
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement