Things that may be removed

Christian Kamm kamm-incasoftware at removethis.de
Wed Dec 17 23:04:43 PST 2008


> Ary Borenszweig:
>> Why, of course, the C syntax for types:
>> int (*x[5])[3];
>> int (*x)(char);
>> int (*[] x)(char);
>> *Ugh*...

bearophile wrote:
> Try porting code that uses heavily n-dimensional tensors from C to D, and
> you understand why supporting the C syntax for arrays (with inverted
> coordinates in the definition) is a godsend :-)

Maybe we could enable them conditionally?

pragma(parser, enable_cstyle_func_and_array_decls);
{
    int (*x[5])[3];
}




More information about the Digitalmars-d mailing list