Changeset 630
- Timestamp:
- 08/27/10 05:52:21 (14 years ago)
- Files:
-
- trunk/src/opover.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/opover.c
r488 r630 457 457 458 458 AggregateDeclaration *ad1 = isAggregate(e1->type); 459 459 AggregateDeclaration *ad2 = isAggregate(e2->type); 460 460 461 461 Dsymbol *s = NULL; 462 462 Dsymbol *s_r = NULL; 463 463 464 464 #if 1 // the old D1 scheme 465 465 if (ad1 && id) 466 466 { 467 467 s = search_function(ad1, id); 468 468 } 469 469 if (ad2 && id_r) 470 470 { 471 471 s_r = search_function(ad2, id_r); 472 472 } 473 473 #endif 474 474 475 475 Objects *targsi = NULL; 476 476 #if DMDV2 477 if (!s && !s_r && op != TOKequal && op != TOKnotequal )477 if (!s && !s_r && op != TOKequal && op != TOKnotequal && op != TOKassign) 478 478 { /* Try the new D2 scheme, opBinary and opBinaryRight 479 479 */ 480 480 if (ad1) 481 481 s = search_function(ad1, Id::opBinary); 482 482 if (ad2) 483 483 s_r = search_function(ad2, Id::opBinaryRight); 484 484 485 485 // Set targsi, the template argument list, which will be the operator string 486 486 if (s || s_r) 487 487 { 488 488 id = Id::opBinary; 489 489 id_r = Id::opBinaryRight; 490 490 targsi = opToArg(sc, op); 491 491 } 492 492 } 493 493 #endif 494 494 495 495 if (s || s_r) 496 496 { 497 497 /* Try:
