Menu
Home
Create new Paste
Log in
Code
Theme: cobalt
Theme: eclipse
Theme: elegant
Theme: monokai
Theme: neat
Theme: night
Theme: rubyblue
import std.stdio; int foo(int n) { if(__ctfe) n = 42; else n = 21; return n; } void main() { enum bar = foo(1); int foobar = foo(2); writeln(bar); writeln(foobar); }
Result:
Success
/
Return code: 0
/
Compilation time:
0.689
seconds
/
Run time:
0.002
seconds
Disassembly
Application output:
42
21
Username
Message
Add comment
Paste info
Author:
Guest
Views:
203
Private:
no
Expires:
Never
Uploaded:
06.08.12 16:20
Votes
:
0
Tweet
Compilation
Compiler:
DMD 2.x Gi
Pointer size:
m64
Actions
Download
Fork
Raw
×
Confirm
Are you sure you want to delete this paste?
There's no way back!
×
Confirm
Reason