Array declaration warning

Paul via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Jun 2 09:37:44 PDT 2015


On Tuesday, 2 June 2015 at 16:23:32 UTC, Adam D. Ruppe wrote:
> On Tuesday, 2 June 2015 at 16:17:23 UTC, Paul wrote:
>> CoOrd[NumPaths][] pathList;
>
> Try CoOrd[][NumPaths].
>
> The order is opposite in D style than in C style (I thnk the D 
> style makes more sense, it just reads one direction, but it 
> does index differently than you're used to in C)

Thank you - I can see this will cause me no end of problems until 
I get my head 'round it!

Paul


More information about the Digitalmars-d-learn mailing list