Error: class myClass.myClass() is used as a type
F i L
witte2008 at gmail.com
Mon Jan 28 17:05:38 PST 2013
rsk82 wrote:
> What's wrong here ?
module myClass (myclass.d);
class myClass() {
this() { ... }
}
and main app (main.d):
import myclass;
void main() {
myClass my_instance = new myClass();
}
then compile with:
$ dmd main.d myclass.d
or:
$ dmd main myclass
or:
$ rdmd main
ps. Module names should be lowercase (see docs), and you can
safely use 'void' for main()
More information about the Digitalmars-d
mailing list