Skip to content

Commit ac18317

Browse files
committed
Lower ' directly to adjoint.
1 parent 70aed06 commit ac18317

File tree

3 files changed

+1
-6
lines changed

3 files changed

+1
-6
lines changed

base/boot.jl

-2
Original file line numberDiff line numberDiff line change
@@ -212,8 +212,6 @@ macro _noinline_meta()
212212
Expr(:meta, :noinline)
213213
end
214214

215-
function postfixapostrophize end
216-
217215
struct BoundsError <: Exception
218216
a::Any
219217
i::Any

base/operators.jl

-3
Original file line numberDiff line numberDiff line change
@@ -714,9 +714,6 @@ fldmod1(x::T, y::T) where {T<:Real} = (fld1(x,y), mod1(x,y))
714714
# efficient version for integers
715715
fldmod1(x::T, y::T) where {T<:Integer} = (fld1(x,y), mod1(x,y))
716716

717-
# postfix apostophre
718-
Core.postfixapostrophize(x) = Adjoint(x)
719-
720717
conj(x) = x
721718

722719

src/julia-syntax.scm

+1-1
Original file line numberDiff line numberDiff line change
@@ -2342,7 +2342,7 @@
23422342
,.(apply append rows)))
23432343
`(call (top typed_vcat) ,t ,@a)))))
23442344

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

0 commit comments

Comments
 (0)