Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR fixes an inconsistency in the behaviour of
@sco
andsco
. The former used to evaluate code insideM::Module
by default, whereassco
evalutes code inMain::Module
by default. Given that normal usage on the REPL evaluates everything inMain
, I decided to make that the default.This means that code which used to write
f()
wheref
is a function insideMyModule
should be replaced byMyModule.f()
orM.f()
afterM = MyModule
is set.It would also be possible for users to
export f
insideMyModule
to allow callingf()
directly, soMain
is definitely the better choice. Note that dependencies fromMyModule
can easily be made available toMain
by using@reexport
.Also, due to the more capable
gen(::Vector)
,gen(::Function)
is now removed.Also, with this PR, users can also more strictly enforce no auto-detection for captions or labels by setting
nothing
. Formissing
, auto-detection will occur.Closes #130.