module main; import std.stdio; struct A {}
static A a; void main() { writeln(main.a); }this code does not work, because it try to use main function instead of main module. Even error message is wierd: Error: struct A does not overload ()
Daniel Kozak via Digitalmars-d Sat, 29 Nov 2014 11:41:02 -0800
module main; import std.stdio; struct A {}
static A a; void main() { writeln(main.a); }this code does not work, because it try to use main function instead of main module. Even error message is wierd: Error: struct A does not overload ()