Skip to content

Commit

Permalink
NEWS and documentation for clear
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffBezanson committed Jul 13, 2014
1 parent 0afb5b2 commit 7c7d30a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ REPL improvements
* Tab-substitution of LaTeX math symbols (e.g. `\alpha` by `α`) ([#6911]).
This also works in IJulia and in Emacs ([#6920]).

* `clear` function for obtaining a fresh workspace ([#1195]).

Library improvements
--------------------

Expand Down
8 changes: 8 additions & 0 deletions doc/stdlib/base.rst
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,14 @@ Getting Around
Print information about the version of Julia in use. If the ``verbose`` argument
is true, detailed system information is shown as well.

.. function:: clear()

Replace the top-level module (``Main``) with a new one, providing a clean workspace.
The previous ``Main`` module is made available as ``LastMain``. A previously-loaded
package can be accessed using a statement such as ``using LastMain.Package``.

This function should only be used interactively.

All Objects
-----------

Expand Down

0 comments on commit 7c7d30a

Please sign in to comment.