Removing the "int foo[];" syntax

bearophile bearophileHUGS at lycos.com
Thu May 2 01:11:39 PDT 2013


Brian Schott:

> It complicates the grammar and doesn't fit with D's style of 
> declaraing variables. (type then identifier)

I suggested something more moderate: to just disallow mixing C 
and D syntax in the same declaration:
http://d.puremagic.com/issues/show_bug.cgi?id=5807


> I realize that it was left in to make C programmers happy,

For that I suggested a -cstyle switch, to be used only 
temporarily to port C code to D:
http://d.puremagic.com/issues/show_bug.cgi?id=4580

Bye,
bearophile


More information about the Digitalmars-d mailing list