We should deprecate C-style declarations
bearophile
bearophileHUGS at lycos.com
Sun Nov 15 10:39:36 PST 2009
#ponce:
> Yes please. There is no real use for:
> int myvar[4];
>
> instead of:
> int[4] myvar;
>
> and porting from C requires some rewriting anyway.
When you translate this C code:
int a[4][10];
You have to remember to invert them to convert them to D:
int[10][4] a;
As time passes, D gets less and less similar to C. Eventually D will look like Scala ;-)
Bye,
bearophile
More information about the Digitalmars-d
mailing list