Skip to content

Commit

Permalink
Add deprecation for 2-arg @boundscheck.
Browse files Browse the repository at this point in the history
  • Loading branch information
blakejohnson committed Jan 6, 2016
1 parent ec886bc commit 3bb35b7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions base/deprecated.jl
Original file line number Diff line number Diff line change
Expand Up @@ -936,3 +936,11 @@ end

#14335
@deprecate super(T::DataType) supertype(T)

#14474
macro boundscheck(blk, truefalse)
depwarn("The meaning of `@boundscheck` has changed. It now indicates that the provided code block performs bounds checking, and may be elided when inbounds.", symbol("@boundscheck"))
if truefalse === true
:(@inbounds $(esc(blk)))
end
end

0 comments on commit 3bb35b7

Please sign in to comment.