Skip to content

Commit 04afaae

Browse files
committed
Tweak rationale for opEquals vs opCmp
1 parent 045d61b commit 04afaae

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

spec/operatoroverloading.dd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,7 @@ $(H2 $(LNAME2 eqcmp, Overloading the Comparison Operators))
369369
$(D opCmp).)
370370

371371
$(P The equality and inequality operators are treated separately
372+
from comparison operators
372373
because while practically all user-defined types can be compared for
373374
equality, only a subset of types have a meaningful ordering. For
374375
example, while it makes sense to determine if two RGB color vectors are

0 commit comments

Comments
 (0)