Menu
Home
Create new Paste
Log in
Code
Theme: cobalt
Theme: eclipse
Theme: elegant
Theme: monokai
Theme: neat
Theme: night
Theme: rubyblue
void main() { struct Test { const string Name; this(string name) { this.Name = name; } } Test[uint] tests; tests[4] = Test("FooBar"); }
Result:
Compilation error
/
Return code: 1 (Hangup)
/
Compilation time:
0.004
seconds
Compilation output:
/home/c228/c424.d(11): Error: tests[4] isn't mutable
Username
Message
Add comment
Paste info
Author:
Namespace
Views:
173
Private:
no
Expires:
Never
Uploaded:
09.09.12 1:00
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