Implicit string lit conversion to wstring/dstring

Timon Gehr timon.gehr at gmx.ch
Wed Mar 14 13:20:19 PDT 2012


On 03/14/2012 09:18 PM, Timon Gehr wrote:
>
> Use this for now:
> void opIndexAssign(K)(in int v, scope K key)
> if (!is(K==Key) && isCompatWithKey!K)
> {...}
>

oops.

I meant:
void opIndexAssign(K)(in Value v, scope K key)
if (!is(K==Key) && isCompatWithKey!K)
{...}

> 'in K key'/const(K) key will only IFTI-match a const type. I don't think
> that is sensible at all, you may want to file a bug report.
>
>



More information about the Digitalmars-d mailing list