Skip to content

Commit

Permalink
Don't assume commutativity of multiplication in division fall back
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasnoack committed Aug 7, 2015
1 parent dcc448b commit 72c4efe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/operators.jl
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ for (op,F) in ((:+,:(AddFun())), (:*,:(MulFun())), (:&,:(AndFun())), (:|,:(OrFun
end
end

\(x::Number,y::Number) = y/x
\(x,y) = (y'/x')'

# .<op> defaults to <op>
./(x::Number,y::Number) = x/y
Expand Down

0 comments on commit 72c4efe

Please sign in to comment.