dynamic classes and duck typing

Steven Schveighoffer schveiguy at yahoo.com
Tue Dec 1 16:22:13 PST 2009


Bill Baxter Wrote:

> Good counterpoints to my argument.  So I give up on that line.
> 
> Here's another, how do you implement the opBinary_r operators with opDispatch?

Kinda cooky, but what about this:

a + b -> b.opDispatch!("r+" )(a)

-Steve 



More information about the Digitalmars-d mailing list