I'd like to implement a C-style sizeof() function in D. (I know about the .sizeof thing, but it's to help in porting a lot of C (C99).)
I want it to be able to run at compile-time, obviously and take a type or an expression as an argument. Ideally, I'd like it to have the same syntax as C, if at all possible, rather than use the distinctive template invocation syntax, as that would greatly increase its utility. Is this at all possible?