From c38977dbe9969b17e567014146bf1381f57106c5 Mon Sep 17 00:00:00 2001 From: Jeff Bezanson Date: Wed, 20 Dec 2017 13:59:25 -0500 Subject: [PATCH] Rename `postfixapostrophize` to `apostrophe` and fix method overwrite --- base/boot.jl | 2 -- base/operators.jl | 4 ++-- src/julia-syntax.scm | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/base/boot.jl b/base/boot.jl index d4099575356675..2d293d2d9ab3cf 100644 --- a/base/boot.jl +++ b/base/boot.jl @@ -208,8 +208,6 @@ macro _noinline_meta() Expr(:meta, :noinline) end -function postfixapostrophize end - struct BoundsError <: Exception a::Any i::Any diff --git a/base/operators.jl b/base/operators.jl index 99a7bea638a197..6c2c27ab3c54f0 100644 --- a/base/operators.jl +++ b/base/operators.jl @@ -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) diff --git a/src/julia-syntax.scm b/src/julia-syntax.scm index f7c1d051f54229..74e3a9166e233b 100644 --- a/src/julia-syntax.scm +++ b/src/julia-syntax.scm @@ -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 (`/`) "