On 3/14/12 2:34 PM, H. S. Teoh wrote:
I tried the following, but it still doesn't work properly:void opIndexAssign()(in Value v, in Key key) { __opIndexAssignImpl(v, key); } void opIndexAssign(K)(in Value v, in K key) if (!is(K==Key)&& isCompatWithKey!K) { __opIndexAssignImpl(v, key); }
Try special casing for the exact types (string, char[] etc), get that working, and then generalize from there.
Andrei