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

Andrej Mitrovic andrej.mitrovich at gmail.com
Thu Mar 22 11:30:06 PDT 2012


On 3/22/12, H. S. Teoh <hsteoh at quickfur.ath.cx> wrote:
> OK, I've added these aliases and pushed to github. I think they're a
> useful thing to have. If not, it's easy to remove before we integrate
> with druntime. But at least in the meantime it will make these AA's
> easier to work with.

Could you also add an enum to the template like so:?

struct AssociativeArray(Key,Value)
{
    enum isAssociativeArray = true;
    ...
}

I've realized that by just removing constraints I'm ending up with a
lot of conflicts (doh!), but I can implement a custom template that
checks for this enum field instead.


More information about the Digitalmars-d mailing list