Why does this simple program segfault?

convert convert at somewhere.com
Tue Aug 14 13:47:29 PDT 2007


Hi, 

I wrote this very simple class, but the call to fun.testIt() segfaults.
If I put the function outside of the class it works just fine.
What am I missing?
I have tried this with dmd v1.015 and the tango dmd v1.018, same thing.

Thank you very much.

-------------------
import std.stdio;

class Tester
{
    void testIt() {}
}

void main()
{
  Tester fun;
  fun.testIt();
  writefln("I made it!");
}



More information about the Digitalmars-d-learn mailing list