Things that may be removed

cemiller chris at dprogramming.com
Fri Dec 19 13:37:18 PST 2008


On Wed, 17 Dec 2008 23:04:43 -0800, Christian Kamm  
<kamm-incasoftware at removethis.de> wrote:

>> 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];
> }
>

They are conditional: you choose to write them or not <g>



More information about the Digitalmars-d mailing list