opCast using in template struct
Timon Gehr
timon.gehr at gmx.ch
Thu Oct 18 17:19:42 PDT 2012
On 10/19/2012 02:12 AM, bearophile wrote:
> Timon Gehr:
>
>> What situations?
>
> This thread has already shown two possible cases worth discussing about.
>
> This report shows two more cases:
> http://d.puremagic.com/issues/show_bug.cgi?id=8844
>
How is that bug-prone? Are there keyboards where : and = are close?
> Two more cases:
>
> Foo opBinary(string op="/\")(Foo f) {}
That is not even going to pass the lexing stage.
> Foo opBinary(string op)(Foo f) if (op == "@") {}
>
What is the issue?
> And several other situations.
>
> Bye,
> bearophile
More information about the Digitalmars-d-learn
mailing list