Menu
Home
Create new Paste
Log in
CTFE array constructor bug
Code
Theme: cobalt
Theme: eclipse
Theme: elegant
Theme: monokai
Theme: neat
Theme: night
Theme: rubyblue
struct Vec2 { this(float x, float y) { m[0] = x; m[1] = y; } float[2] m; static Vec2 zeroes = Vec2(0, 0); } void main() { import std.stdio; writeln(Vec2.zeroes); }
Result:
Success
/
Return code: 0
/
Compilation time:
0.62
seconds
/
Run time:
0.001
seconds
Application output:
Vec2([0, 0])
Username
Message
Add comment
Paste info
Author:
Guest
Views:
97
Private:
no
Expires:
Never
Uploaded:
01.10.12 1:39
Votes
:
0
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