You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bpart: Give a warning when accessing a backdated const binding
This implements the strategy proposed in #57102 (comment).
Example:
```
julia> function foo(i)
eval(:(const x = $i))
x
end
foo (generic function with 1 method)
julia> foo(1)
WARNING: Detected access to binding Main.x in a world prior to its definition world.
Julia 1.12 has introduced more strict world age semantics for global bindings.
!!! This code may malfunction under Revise.
!!! This code will error in future versions of Julia.
Hint: Add an appropriate `invokelatest` around the access to this binding.
1
```
The warning is triggered once per binding to avoid spamming for repeated access.
0 commit comments