Thread overview
Re: Things that may be removed
Dec 18, 2008
sandeepk
Dec 18, 2008
BCS
Dec 19, 2008
KennyTM~
Dec 19, 2008
BCS
December 18, 2008
bearophile Wrote:

> Ary Borenszweig:
> > Why, of course, the C syntax for types:
> > int (*x[5])[3];
> > int (*x)(char);
> > int (*[] x)(char);
> > *Ugh*...
> 
> 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 :-)
> 
> Bye,
> bearophile

I think the right solution for this is to include a tool that rewrites them into D style.

December 18, 2008
Reply to sandeepk,

> 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 :-)
>> 
> I think the right solution for this is to include a tool that rewrites
> them into D style.
> 

vote ++;


December 19, 2008
BCS wrote:
> Reply to sandeepk,
> 
>> 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 :-)
>>>
>> I think the right solution for this is to include a tool that rewrites
>> them into D style.
>>
> 
> vote ++;
> 
> 
http://www.digitalmars.com/d/2.0/htod.html ?
December 19, 2008
Reply to KennyTM~,

> BCS wrote:
> 
>> Reply to sandeepk,
>> 
>>> 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 :-)
>>>> 
>>> I think the right solution for this is to include a tool that
>>> rewrites them into D style.
>>> 
>> vote ++;
>> 
> http://www.digitalmars.com/d/2.0/htod.html ?
> 

not quite. That's for headers. What about code files?