This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; AT&T syntax | |
Dump of assembler code for function _Dmain: | |
0x0805c3ac <+0>: push %ebp | |
0x0805c3ad <+1>: mov %esp,%ebp | |
0x0805c3af <+3>: sub $0x8,%esp | |
0x0805c3b2 <+6>: push %ebx | |
0x0805c3b3 <+7>: push %esi | |
0x0805c3b4 <+8>: push %edi | |
0x0805c3b5 <+9>: movl $0x2a,-0x8(%ebp) ;d = Date(42) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import std.string; | |
struct Date | |
{ | |
this(int) | |
{ | |
} | |
short _year = 2; | |
ubyte _month = 1; | |
ubyte _day = 1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import std.string; | |
struct Date | |
{ | |
this(int) | |
{ | |
} | |
short _year = 2; | |
ubyte _month = 1; | |
ubyte _day = 1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class RedBlackTree(alias less) | |
{ | |
int a; | |
int nested() | |
{ | |
return a; | |
} | |
struct Range | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class RedBlackTree(alias less) | |
{ | |
int a; | |
struct Range | |
{ | |
auto @property empty() | |
{ | |
return a; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class RedBlackTree(alias less) | |
{ | |
int a; | |
struct Range | |
{ | |
auto @property empty() | |
{ | |
return a; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class RedBlackTree(alias less) | |
{ | |
struct Range | |
{ | |
auto @property empty() | |
{ | |
} | |
} | |
Range opSlice() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
auto f7965()() | |
{ | |
int a; | |
class Result | |
{ | |
void g() { /*a = 42;*/ } | |
} | |
return new Result(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct S7965 | |
{ | |
} | |
auto f7965()() | |
{ | |
int a; | |
class Result | |
{ | |
S7965 s; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From f750e1fdbd0cf0ec0e791709fd204aaeb7781bb1 Mon Sep 17 00:00:00 2001 | |
From: Johannes Pfau <[email protected]> | |
Date: Sat, 2 Feb 2013 22:53:21 +0100 | |
Subject: [PATCH] Implement D predefined OS versions | |
This implements the following official versions: | |
* Windows | |
** Win32 | |
** Win64 | |
** Cygwin |