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; static if (!is(typeof(writeln))) alias writefln writeln; class A { public: override string toString() const { return typeof(this).stringof; } } void main() { const(A)[] aas; const A a = new A(); aas ~= a; aas ~= new A(); writeln(aas); }
Result:
Success
/
Return code: 0
/
Compilation time:
0.525
seconds
/
Run time:
0.002
seconds
Disassembly
Application output:
[const(A), const(A)]
Username
Message
Add comment
Paste info
Author:
Namespace
Views:
101
Private:
no
Expires:
Never
Uploaded:
15.11.12 21:56
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