I have put this as two enhancement requests in Bugzilla, one is for a small amount of code added to Phobos, the other is for some syntax sugar: http://d.puremagic.com/issues/show_bug.cgi?id=4577 http://d.puremagic.com/issues/show_bug.cgi?id=4579 Bye, bearophile