Skip to content

Commit

Permalink
Update operatoroverloading.dd
Browse files Browse the repository at this point in the history
In my browser the arguments are not properly displayed. Therefore, I changed them so they will be. For me it looks like this: 
    -a[b⊂, b⊂, ... b⊂]    a.opIndexUnary!("-" )(b⊂, b⊂, ... b⊂)
    +a[b⊂, b⊂, ... b⊂]    a.opIndexUnary!("+" )(b⊂, b⊂, ... b⊂)
    ~a[b⊂, b⊂, ... b⊂]    a.opIndexUnary!("~" )(b⊂, b⊂, ... b⊂)
    *a[b⊂, b⊂, ... b⊂]    a.opIndexUnary!("*" )(b⊂, b⊂, ... b⊂)
   ++a[b⊂, b⊂, ... b⊂]    a.opIndexUnary!("++")(b⊂, b⊂, ... b⊂)
   --a[b⊂, b⊂, ... b⊂]    a.opIndexUnary!("--")(b⊂, b⊂, ... b⊂)
Which does not seem to be right.
  • Loading branch information
ralphtandetzky committed Dec 18, 2013
1 parent ce74d88 commit ce6aa81
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions operatoroverloading.dd
Expand Up @@ -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))
)
)

Expand Down

0 comments on commit ce6aa81

Please sign in to comment.