Nested slicing

Koroskin Denis 2korden+dmd at gmail.com
Mon Mar 31 07:36:28 PDT 2008


On Mon, 31 Mar 2008 18:04:53 +0400, Janice Caron <caron800 at googlemail.com>  
wrote:

> On 31/03/2008, Koroskin Denis <2korden+dmd at gmail.com> wrote:
>> One last thing about dollar notation in array slicing.
>>  Shouldn't the following piece of code generate a compile-time error?
>
> I hope not.
>
> (And even if it does, the error message should mention $, not
> __dollar, since __dollar is undocumented).

My bet it should. This is both confusing and could be a source of errors.
And it is a shadowing indeed.



More information about the Digitalmars-d mailing list