Access violation when using classes (beginner)

Robin Allen r.a3 at ntlworld.com
Fri Jan 5 20:22:33 PST 2007


Hi, could someone tell me why this code gives an access violation? It seems I
must be missing some fundamental difference between C++ and D.

class C
{
    void zing() {}
}

void main()
{
    C c;
    c.zing();
}


More information about the Digitalmars-d-learn mailing list