We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7708eb1 commit f499b01Copy full SHA for f499b01
NEWS.md
@@ -732,6 +732,9 @@ Deprecated or removed
732
* `trues(A::AbstractArray)` and `falses(A::AbstractArray)` are deprecated in favor of
733
`trues(size(A))` and `falses(size(A))` respectively ([#24595]).
734
735
+ * `workspace` is discontinued, check out [Revise.jl](https://github.com/timholy/Revise.jl)
736
+ for an alternative workflow ([#25046]).
737
+
738
* `cumsum`, `cumprod`, `accumulate`, and their mutating versions now require a `dim`
739
argument instead of defaulting to using the first dimension ([#24684]).
740
base/exports.jl
@@ -960,7 +960,6 @@ export
960
varinfo,
961
versioninfo,
962
which,
963
- workspace,
964
@isdefined,
965
966
# loading source files
base/interactiveutil.jl
@@ -666,33 +666,6 @@ functionality instead.
666
"""
667
download(url, filename)
668
669
-# workspace management
670
-
671
-"""
672
- workspace()
673
674
-Replace the top-level module (`Main`) with a new one, providing a clean workspace. The
675
-previous `Main` module is made available as `LastMain`.
676
677
-If `Package` was previously loaded, `using Package` in the new `Main` will re-use the
678
-loaded copy. Run `reload("Package")` first to load a fresh copy.
679
680
-This function should only be used interactively.
681
682
-function workspace()
683
- last = Core.Main # ensure to reference the current Main module
684
- b = Base # this module
685
- ccall(:jl_new_main_module, Any, ()) # make Core.Main a new baremodule
686
- m = Core.Main # now grab a handle to the new Main module
687
- ccall(:jl_add_standard_imports, Void, (Any,), m)
688
- eval(m, Expr(:toplevel,
689
- :(const Base = $b),
690
- :(const LastMain = $last),
691
- :(using Base.MainInclude)))
692
- empty!(package_locks)
693
- return m
694
-end
695
696
# testing
697
698
base/reflection.jl
@@ -18,7 +18,7 @@ module_name(m::Module) = ccall(:jl_module_name, Ref{Symbol}, (Any,), m)
18
19
module_parent(m::Module) -> Module
20
21
-Get a module's enclosing `Module`. `Main` is its own parent, as is `LastMain` after `workspace()`.
+Get a module's enclosing `Module`. `Main` is its own parent.
22
23
# Examples
24
```jldoctest
doc/src/manual/modules.md
@@ -355,7 +355,7 @@ code to help the user avoid other wrong-behavior situations:
355
emitted when the incremental precompile flag is set.
356
2. `global const` statements from local scope after `__init__()` has been started (see issue #12010
357
for plans to add an error for this)
358
-3. Replacing a module (or calling [`workspace()`](@ref)) is a runtime error while doing an incremental precompile.
+3. Replacing a module is a runtime error while doing an incremental precompile.
359
360
A few other points to be aware of:
361
doc/src/stdlib/base.md
@@ -48,7 +48,6 @@ Base.methods
48
Base.methodswith
49
Base.@show
50
Base.versioninfo
51
-Base.workspace
52
ans
53
```
54
test/choosetests.jl
@@ -48,7 +48,7 @@ function choosetests(choices = [])
"replutil", "sets", "goto", "llvmcall", "llvmcall2", "grisu",
"nullable", "meta", "stacktraces", "libgit2", "docs",
"markdown", "serialize", "misc", "threads",
- "enums", "cmdlineargs", "i18n", "workspace", "libdl", "int",
+ "enums", "cmdlineargs", "i18n", "libdl", "int",
"checked", "bitset", "floatfuncs", "compile", "distributed", "inline",
"boundscheck", "error", "ambiguous", "cartesian", "asmvariant", "osutils",
"channels", "iostream", "specificity", "codegen", "codevalidation",
test/workspace.jl
0 commit comments