Menu
Home
Create new Paste
Log in
template alias parameter
Code
Theme: cobalt
Theme: eclipse
Theme: elegant
Theme: monokai
Theme: neat
Theme: night
Theme: rubyblue
module main; import std.stdio : writeln; void F(alias f) (string x, string y) { f(x, y); } void main() { F!writeln("Hello ", "world!"); }
Result:
Success
/
Return code: 0
/
Compilation time:
0.236
seconds
/
Run time:
0.001
seconds
Application output:
Hello world!
Username
Message
Add comment
Paste info
Author:
Guest
Views:
122
Private:
no
Expires:
Never
Uploaded:
19.09.12 6:31
Votes
:
1
Tweet
Compilation
Compiler:
DMD 2.060
Pointer size:
m64
Actions
Download
Fork
Raw
×
Confirm
Are you sure you want to delete this paste?
There's no way back!
×
Confirm
Reason