BTW, that code snippet will compile properly with D's ImportC compiler. Proof that it is not impractical.