Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 1.0
-
Fix Version/s: 1.1-rc-1
-
Component/s: None
-
Labels:None
-
Environment:Any
-
Number of attachments :
Description
It would be nice to be able to map the unary negation operator to a method and be able to overload it via a Category, like can be done for the binary math operators (+, -, *, /, etc.).
You can now override negative(), positive() and bitwiseNegate() corresponding to -x, +x, ~x.