Wrong lowering for a[b][c]++
Andrej Mitrovic
andrej.mitrovich at gmail.com
Wed Mar 21 13:25:04 PDT 2012
On 3/21/12, H. S. Teoh <hsteoh at quickfur.ath.cx> wrote:
> whereas if this was supported, the code would simply be:
>
> void inc_frequency(string entry, int xcoor, int ycoor) {
> map[entry][x][y]++;
> }
Wait a minute. Are we missing something? This does work in 2.058:
void inc_frequency(string entry, int x, int y)
{
int[int][int][string] map;
map[entry][x][y]++;
}
void main() {
inc_frequency("bla", 10, 20);
}
I'm now totally confused. :x
More information about the Digitalmars-d
mailing list