Operator overloading -- lets collect some use cases

Denis Koroskin 2korden at gmail.com
Tue Dec 30 06:46:33 PST 2008


On Tue, 30 Dec 2008 17:30:13 +0300, Frits van Bommel <fvbommel at remwovexcapss.nl> wrote:

> Bill Baxter wrote:
>> Merging might be useful there too --- A ~= b ~ c ~ d  is probably more
>> efficiently implemented as 3 ~= ops.
>
> Actually, it's probably most efficiently implemented as 1 "~=" with  
> multiple parameters. (DMD already does this for arrays)

Perhaps, not not general enough:

A += a * b - c / d; // how to do this one?



More information about the Digitalmars-d mailing list