> Also, in my case, the return; in writer must be commented out, or DMD
> complains it cannot be reached.
Interesting, I didn't have to comment out return; using dmd 2.047 on linux
I think I have -w (warnings treated as errors?) always checked. That's my Code::Blocks default configuration for DMD. I was on Windows for this test. I never cheked if there was any difference between OSes for this :-)