-
-
Save zaydek-old/b60c6afd01ae954a887a8ecfdd0e2cbd to your computer and use it in GitHub Desktop.
my issue with modules
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 a; | |
void a() | |
{ | |
import std.stdio; | |
writeln("hello, world!"); | |
} |
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 a; | |
void main() | |
{ | |
a(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
b.d(5): Error: function expected before (), not module a of type void