diff --git a/operatoroverloading.dd b/operatoroverloading.dd index 8d955d8054..710fac98e9 100644 --- a/operatoroverloading.dd +++ b/operatoroverloading.dd @@ -94,27 +94,27 @@ $(H3 Overloading Index Unary Operators) $(TABLE2 Overloadable Index Unary Operators, $(THEAD $(I op), $(I rewrite)) $(TROW - $(D -)$(I a)$(D [)$(ARGUMENTS)$(D ]), - $(ARGS $(I a)$(D .opIndexUnary!("-")$(LPAREN))$(ARGUMENTS)$(D $(RPAREN)))) + $(D -)$(I a)$(D [b1,b2,...,bn]), + $(ARGS $(I a)$(D .opIndexUnary!("-")$(LPAREN)b1,b2,...,bn$(RPAREN)))) $(TROW - $(D +)$(I a)$(D [)$(ARGUMENTS)$(D ]), - $(I a)$(D .opIndexUnary!("+")$(LPAREN))$(ARGUMENTS)$(D $(RPAREN)) + $(D +)$(I a)$(D [b1,b2,...,bn]), + $(I a)$(D .opIndexUnary!("+")$(LPAREN)b1,b2,...,bn$(RPAREN)) ) $(TROW - $(D ~)$(I a)$(D [)$(ARGUMENTS)$(D ]), - $(I a)$(D .opIndexUnary!("~")$(LPAREN))$(ARGUMENTS)$(D $(RPAREN)) + $(D ~)$(I a)$(D [b1,b2,...,bn]), + $(I a)$(D .opIndexUnary!("~")$(LPAREN)b1,b2,...,bn$(RPAREN)) ) $(TROW - $(D *)$(I a)$(D [)$(ARGUMENTS)$(D ]), - $(I a)$(D .opIndexUnary!("*")$(LPAREN))$(ARGUMENTS)$(D $(RPAREN)) + $(D *)$(I a)$(D [b1,b2,...,bn]), + $(I a)$(D .opIndexUnary!("*")$(LPAREN)b1,b2,...,bn$(RPAREN)) ) $(TROW - $(D ++)$(I a)$(D [)$(ARGUMENTS)$(D ]), - $(I a)$(D .opIndexUnary!("++")$(LPAREN))$(ARGUMENTS)$(D $(RPAREN)) + $(D ++)$(I a)$(D [b1,b2,...,bn]), + $(I a)$(D .opIndexUnary!("++")$(LPAREN)b1,b2,...,bn$(RPAREN)) ) $(TROW - $(D --)$(I a)$(D [)$(ARGUMENTS)$(D ]), - $(I a)$(D .opIndexUnary!("--")$(LPAREN))$(ARGUMENTS)$(D $(RPAREN)) + $(D --)$(I a)$(D [b1,b2,...,bn]), + $(I a)$(D .opIndexUnary!("--")$(LPAREN)b1,b2,...,bn$(RPAREN)) ) )