Skip to content

Commit 95c26b5

Browse files
committed
Define vector_any in coreimg.
This enables calls to kwarg functions before Base is defined (eg. in inference), as the frontend generates a call to vector_any.
1 parent d0e7684 commit 95c26b5

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

base/base.jl

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -145,16 +145,6 @@ finalize(o::ANY) = ccall(:jl_finalize_th, Void, (Ptr{Void}, Any,),
145145
gc(full::Bool=true) = ccall(:jl_gc_collect, Void, (Cint,), full)
146146
gc_enable(on::Bool) = ccall(:jl_gc_enable, Cint, (Cint,), on)!=0
147147

148-
# used by interpolating quote and some other things in the front end
149-
function vector_any(xs::ANY...)
150-
n = length(xs)
151-
a = Array{Any}(n)
152-
@inbounds for i = 1:n
153-
arrayset(a,xs[i],i)
154-
end
155-
a
156-
end
157-
158148
immutable Nullable{T}
159149
isnull::Bool
160150
value::T

base/essentials.jl

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,3 +217,13 @@ const (:) = Colon()
217217
# For passing constants through type inference
218218
immutable Val{T}
219219
end
220+
221+
# used by interpolating quote and some other things in the front end
222+
function vector_any(xs::ANY...)
223+
n = length(xs)
224+
a = Array{Any}(n)
225+
@inbounds for i = 1:n
226+
Core.arrayset(a,xs[i],i)
227+
end
228+
a
229+
end

0 commit comments

Comments
 (0)