Btw, should I skip trying to use inout at all for now? I've read some posts saying that it's awfully broken, and the example of inout in TDPL doesn't work..
Yes. I have expressed the cases that inout should deal with in bug http://d.puremagic.com/issues/show_bug.cgi?id=3748
-Steve