This will crash when the line "X x = new X()" is executed.
Is this to be expected?

It seems you haven't started the runtime.

Use this function:

https://github.com/D-Programming-Language/druntime/blob/master/src/rt/dmain2.d#L281


Thanks.  That fixed my problem.  This is my first D program,
so I wouldn't have figured it out on my own...

-Eric

Reply via email to