Skip to content

Instantly share code, notes, and snippets.

@zaydek-old
Created August 8, 2017 20:55
Show Gist options
  • Save zaydek-old/b60c6afd01ae954a887a8ecfdd0e2cbd to your computer and use it in GitHub Desktop.
Save zaydek-old/b60c6afd01ae954a887a8ecfdd0e2cbd to your computer and use it in GitHub Desktop.
my issue with modules
module a;
void a()
{
import std.stdio;
writeln("hello, world!");
}
import a;
void main()
{
a();
}
@zaydek-old
Copy link
Author

zaydek-old commented Aug 8, 2017

b.d(5): Error: function expected before (), not module a of type void

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment