Hi Michael,your code works for me (DMD 2.061, Linux), with a semicolon after the aliasin class Bar.Also, use writeln, not writefln, because writefln assumes the firstparameter is the formatting string.
Why would you want get/set though when D offers property functions?
The argument of "if your public attribute becomes private, then code breaks" is invalid in D.