Short list with things to finish for D2

Simen kjaeraas simen.kjaras at gmail.com
Thu Nov 19 00:33:07 PST 2009


retard <re at tard.com.invalid> wrote:

> Does the new system allow overriding only some binary operations and not
> all of them at once?

struct S {
     S opBinary( string op )( S rhs ) if ( op == "+" ) {
         // Do stuff
     }
}

> I thought generic member functions were non-virtual?


Andrei Alexandrescu <SeeWebsiteForEmail at erdani.org> wrote:
> 3. The template functions can't be virtual (fixable with a forwarding  
> thunk written once and for all).

-- 
Simen



More information about the Digitalmars-d mailing list