[phobos] phobos commit, revision 2079
Don Clugston
dclugston at googlemail.com
Fri Oct 1 20:16:50 PDT 2010
On 2 October 2010 04:46, David Simcha <dsimcha at gmail.com> wrote:
> Why the heck does D even support the C style syntax here? IMHO it should
> just be removed because it's completely unreadable and not that important
> for porting C code.
I agree. Even worse is C function type syntax.
alias int(x)(int);
x * y;
actually compiles, and declares y as a function pointer. And x is a
function type, the most bizarre beast in the C family.
int (z); actually parses as a declaration of a function type. Really
nasty for is() expressions.
More information about the phobos
mailing list