Skip to content

Commit

Permalink
fix Issue 6948 - Possible bug in compiler or documentation regarding …
Browse files Browse the repository at this point in the history
…signature of opCmp()
  • Loading branch information
WalterBright committed Jan 21, 2012
1 parent 3628a19 commit 9555308
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions arrays.dd
Original file line number Diff line number Diff line change
Expand Up @@ -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.
)
Expand Down

0 comments on commit 9555308

Please sign in to comment.