Skip to content

Commit

Permalink
Rename postfixapostrophize to apostrophe and fix method overwrite
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffBezanson committed Dec 21, 2017
1 parent dbceb14 commit 32ae4e8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 0 additions & 2 deletions base/boot.jl
Original file line number Diff line number Diff line change
Expand Up @@ -208,8 +208,6 @@ macro _noinline_meta()
Expr(:meta, :noinline)
end

function postfixapostrophize end

struct BoundsError <: Exception
a::Any
i::Any
Expand Down
4 changes: 2 additions & 2 deletions base/operators.jl
Original file line number Diff line number Diff line change
Expand Up @@ -739,8 +739,8 @@ fldmod1(x::T, y::T) where {T<:Real} = (fld1(x,y), mod1(x,y))
# efficient version for integers
fldmod1(x::T, y::T) where {T<:Integer} = (fld1(x,y), mod1(x,y))

# postfix apostophre
Core.postfixapostrophize(x) = Adjoint(x)
# postfix apostrophe
apostrophe(x) = Adjoint(x)

"""
adjoint(A)
Expand Down
2 changes: 1 addition & 1 deletion src/julia-syntax.scm
Original file line number Diff line number Diff line change
Expand Up @@ -2378,7 +2378,7 @@
,.(apply append rows)))
`(call (top typed_vcat) ,t ,@a)))))

'|'| (lambda (e) (expand-forms `(call (core postfixapostrophize) ,(cadr e))))
'|'| (lambda (e) (expand-forms `(call (top apostrophe) ,(cadr e))))
'|.'| (lambda (e) (begin (deprecation-message (string "The syntax `.'` for transposition is deprecated, "
"and the special lowering of `.'` in multiplication "
"(`*`), left-division (`\\`), and right-division (`/`) "
Expand Down

0 comments on commit 32ae4e8

Please sign in to comment.