Menu
Home
Create new Paste
Log in
Code
Syntax: D
Syntax: Plain text
Theme: cobalt
Theme: eclipse
Theme: elegant
Theme: monokai
Theme: neat
Theme: night
Theme: rubyblue
Templates...
Hello world!
99 botttles of beer - compile time version
99 botttles of beer - runtime time version
struct A { enum zero = A(); // Error: A() is not an lvalue int opCmp(const ref A a) const //int opCmp(A a) { return 1; } } void main() { A a; auto b = a > A.zero; assert(typeid(a).xopCmp !is null); }
Hide Input / Output
Top
Comment
Input
Output
Paste settings
Compiler:
DMD 2.062
DMD 2.x Git (cfb5842b49)
DMD 1.076
GDC 2.060
LDC 2.060
Expiration:
Never
10 minutes
30 minutes
2 hours
1 day
1 week
1 month
Password:
Pointer size:
64
Access:
Public
Unlisted
Private
Others:
Comments allowed
Run
Unittest
Compile
Save