Permalink
Browse files

fix Issue 6948 - Possible bug in compiler or documentation regarding …

…signature of opCmp()
  • Loading branch information...
WalterBright committed Jan 21, 2012
1 parent 3628a19 commit 955530833c2221e934f24dd4f0c431b724e4db58
Showing with 5 additions and 0 deletions.
  1. +5 −0 arrays.dd
View
@@ -600,8 +600,13 @@ $(V2 $(TD Returns an array literal with each element of the literal being the
$(P For the $(B .sort) property to work on arrays of
structs or unions, the struct or union definition must
define the function:
+$(V1
$(D int opCmp(S)) or
$(D int opCmp(S*)).
+)
+$(V2
+ $(D int opCmp(ref const S) const).
+)
The type $(D S) is the type of the struct or union.
This function will determine the sort ordering.
)

0 comments on commit 9555308

Please sign in to comment.