UFCS

Manfred Nowak via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri May 15 14:31:35 PDT 2015


The following gives:
"Error: 'a += b' is not a scalar, it is a C"
although UFCS should engage.

-manfred

class C{}
int main(){
  void opOpAssign( string op)( C a, C b){
  }
  C a, b;
  a+= b;
}


More information about the Digitalmars-d-learn mailing list