I get a segmentation fault, when I run this program:

void main()
{
   A bar = cast(A)Object.factory("AA");
   bar.foo();
}

class A    { abstract void foo(); }
class AA:A { override void foo() {} }

The call of bar.foo() is, where the segmentation fault occurs. When I use A bar = new AA(); instead of the factory it works.

What's wrong here?

Reply via email to