Last active
January 2, 2016 08:49
-
-
Save simcop2387/8278526 to your computer and use it in GitHub Desktop.
d problem
This file contains hidden or 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
-> % dub build | |
Checking dependencies in '/mnt/mintdisk/home/ryan/workspace/d-rpg' | |
Building configuration "application", build type debug | |
Compiling... | |
source/ui/widget/rawtext.d(5): Error: undefined identifier Widget | |
Run 'dub help' for usage information. |
This file contains hidden or 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 ui.widget.rawtext; | |
void main() { | |
auto rt = new RawText(); | |
rt.draw(); | |
} |
This file contains hidden or 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 ui.widget; | |
class Widget { | |
void draw() { | |
// Do nothing | |
} | |
} |
This file contains hidden or 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 ui.widget.rawtext; | |
import ui.widget; | |
import std.stdio; | |
class RawText : Widget { | |
void draw() { | |
writeln("Hello World"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
_ is really a /, but gist doesn't let me do that.