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
module fizzbuzz; | |
import std.stdio : writefln; | |
import std.conv : to; | |
void fizzbuzz(int i) { | |
auto msg1 = i.to!string; | |
auto msg2 = ""; |
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
/+ | |
Scenario: | |
Compile this file with dmd v2.077.1 and -betterC and it will complain: | |
> dmd miniwin32.d -m64 -betterC | |
.\miniwin32.d(38): Error: function miniwin32.culprit is not nothrow | |
.\miniwin32.d(32): Error: nothrow function miniwin32.windowCallback may throw | |
Declaration of WNDCLASSA: | |
struct WNDCLASSA { | |
// ... |
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
namespace Name.Space | |
{ | |
/* internal */ class TopLevelClass | |
{ | |
/* private */ int Field; | |
/* private */ TopLevelClass() { } | |
/* private */ void Method() { } |