Wrong lowering for a[b][c]++

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Wed Mar 21 15:51:12 PDT 2012


On 3/21/12 5:44 PM, H. S. Teoh wrote:
> Sorry, I was thinking in terms of my AA implementation which is done
> using a struct with operator overloading. I should've checked what the
> behaviour of the current built-in AAs are before posting. :-P

The request for autovivification (believe it or not, that's how Perl 
calls it (http://en.wikipedia.org/wiki/Autovivification)) is quite clear 
in a[b][c]++, so it makes sense to enable the expression.

Andrei


More information about the Digitalmars-d mailing list