Skip to content

Commit

Permalink
include: deprecate multi-argument method of include
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanKarpinski committed Jan 6, 2017
1 parent ae7c891 commit 54c76f1
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions base/deprecated.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1499,4 +1499,13 @@ end
# Calling promote_op is likely a bad idea, so deprecate its convenience wrapper promote_eltype_op
@deprecate promote_eltype_op(op, As...) promote_op(op, map(eltype, As)...)

function include(_path::AbstractString...)
depwarn("multi-argument `include` is deprecated, use multiple `include` calls instead", :include)
local result
for path in _path
result = include(path)
end
result
end

# End deprecations scheduled for 0.6

0 comments on commit 54c76f1

Please sign in to comment.