multi-dimensional array whole slicing

XavierAP via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Apr 23 12:04:24 PDT 2017


On Sunday, 23 April 2017 at 09:06:35 UTC, Ali Çehreli wrote:
>
> It took me a while to convince myself that there is no bug 
> here. The problem, as is obvious to others, ;) a whole slice of 
> a whole slice is still the same slice.

Ha, you're right, I hadn't realized.

But I still have a problem. For both multi-dimensional and 
uni-dimensional arrays a[] and a[][] are the same. And yet, a[] 
has different type in both cases and a[]=1 compiles for 
uni-dimensional but not for multi-dimensional.


More information about the Digitalmars-d-learn mailing list