-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Closed
Description
I come originally from https://discourse.julialang.org/t/from-from-fromfile-does-not-work-inside-begin-en-for-local-module-workflow/76100/2
MWE
julia> begin
using LinearAlgebra
LinearAlgebra.@commutative
end
ERROR: LoadError: UndefVarError: LinearAlgebra not defined
in expression starting at REPL[1]:3I think Pluto users put every commands inside begin ... end so this should be considered equivalent to have the following directly in REPL
using LinearAlgebra
LinearAlgebra.@commutativeI'm not sure why the module followed with a macro is somehow evaluated before the module is loaded? I think most people would expect this to work.
Metadata
Metadata
Assignees
Labels
No labels