Error: class myClass.myClass() is used as a type

rsk82 rsk82 at live.com
Sun Jan 27 11:55:06 PST 2013


this is my module:

module myClass;

class myClass () {
   this() {

   }
};

and main app:

import myClass;

int main() {
   myClass my_instance = new myClass();
   return 0;
}

What's wrong here ?


More information about the Digitalmars-d mailing list