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; struct S { this(const this) { writeln("Const called"); } //this(this) { writeln("NonConst called"); } } void main() { S x; const(S) cx; S x2 = x; S x3 = cx; S[S[string]] w1,w2; assert(w1==w2); writeln("Done"); }
Result:
Success
/
Return code: 0
/
Compilation time:
0.303
seconds
/
Run time:
0.001
seconds
Disassembly
Application output:
Done
Username
Message
Add comment
Paste info
Author:
Guest
Views:
82
Private:
no
Expires:
Never
Uploaded:
09.11.12 18:53
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