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()

Reply via email to