Charles Hixson:
Is this the way things are supposed to happen? (Changing the struct to a class is an OK patch, but I don't understand why it should either work or be necessary.)
Please show a complete very little program, and maybe someone will try to help you.
(Eventually it's a good idea to write a simple FAQ for D.learn, that also explains how to ask questions and how to give answers).
Bye, bearophile