https://d.puremagic.com/issues/show_bug.cgi?id=2954


Denis Shelomovskij <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[tdpl] Appalling bug in     |[tdpl] Allow to set
                   |associative arrays (D2      |associative array key value
                   |only)                       |only using expression AA
                   |                            |key type is constructable
                   |                            |from


--- Comment #10 from Denis Shelomovskij <[email protected]> 
2014-03-30 13:16:18 MSK ---
(In reply to comment #9)
> ...
> Accessing lvalues in a hash table must be done with a type assignable to the
> key type. Rvalue lookup may be done with types only comparable t the key type.

What does it mean "Accessing lvalues" and "Rvalue lookup"? It sounds like a
meaningless terminology mix for me.

Anyway ability to set `V[K]` AA key using `expr` should compile iff `K x =
expr` compiles i.e. `K` is constructable using `expr`. As for getting AA keys
we have a complete mess too so I filed Issue 12492.

Also I changed this issue title to be precise.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to