May 19, 2013 Re: Operators overloading | ||||
---|---|---|---|---|
| ||||
Posted in reply to Idan Arye | On Sunday, 19 May 2013 at 10:41:53 UTC, Idan Arye wrote:
>
> I think a better syntax would be:
>
> const Vertex opBinary(string op : "+", "-")(const ref Vertex vertex)
I tried this first... Yes, it's a better syntax.
|
Copyright © 1999-2021 by the D Language Foundation