const(/* D is kind of hard to parse. /* /**/ int//) foo(T// ) foo(T// )(T /* I mean, seriously */ bar) if ( is (T == // how on earth do they do it? int) ) { return cast /+ where does the function name /+ even start? +/ +/ ( const (int) ) bar//;} ;} void main() { import std.stdio; writeln(foo(42)); }
I don't think I'm going to write a D parser.