/usr/share/doc/racket/reference/interactive.html is in racket-doc 6.7-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"/><title>18.4 Interactive Module Loading</title><link rel="stylesheet" type="text/css" href="../scribble.css" title="default"/><link rel="stylesheet" type="text/css" href="extras.css" title="default"/><link rel="stylesheet" type="text/css" href="../racket.css" title="default"/><link rel="stylesheet" type="text/css" href="../manual-style.css" title="default"/><link rel="stylesheet" type="text/css" href="../manual-racket.css" title="default"/><link rel="stylesheet" type="text/css" href="../manual-racket.css" title="default"/><link rel="stylesheet" type="text/css" href="../doc-site.css" title="default"/><script type="text/javascript" src="../scribble-common.js"></script><script type="text/javascript" src="../manual-racket.js"></script><script type="text/javascript" src="../manual-racket.js"></script><script type="text/javascript" src="../doc-site.js"></script><script type="text/javascript" src="../local-redirect/local-redirect.js"></script><script type="text/javascript" src="../local-redirect/local-user-redirect.js"></script><!--[if IE 6]><style type="text/css">.SIEHidden { overflow: hidden; }</style><![endif]--></head><body id="doc-racket-lang-org"><div class="tocset"><div class="tocview"><div class="tocviewlist tocviewlisttopspace"><div class="tocviewtitle"><table cellspacing="0" cellpadding="0"><tr><td style="width: 1em;"><a href="javascript:void(0);" title="Expand/Collapse" class="tocviewtoggle" onclick="TocviewToggle(this,"tocview_0");">►</a></td><td></td><td><a href="index.html" class="tocviewlink" data-pltdoc="x"><span style="font-weight: bold">The Racket Reference</span></a></td></tr></table></div><div class="tocviewsublisttop" style="display: none;" id="tocview_0"><table cellspacing="0" cellpadding="0"><tr><td align="right">1 </td><td><a href="model.html" class="tocviewlink" data-pltdoc="x">Language Model</a></td></tr><tr><td align="right">2 </td><td><a href="notation.html" class="tocviewlink" data-pltdoc="x">Notation for Documentation</a></td></tr><tr><td align="right">3 </td><td><a href="syntax.html" class="tocviewlink" data-pltdoc="x">Syntactic Forms</a></td></tr><tr><td align="right">4 </td><td><a href="data.html" class="tocviewlink" data-pltdoc="x">Datatypes</a></td></tr><tr><td align="right">5 </td><td><a href="structures.html" class="tocviewlink" data-pltdoc="x">Structures</a></td></tr><tr><td align="right">6 </td><td><a href="mzlib_class.html" class="tocviewlink" data-pltdoc="x">Classes and Objects</a></td></tr><tr><td align="right">7 </td><td><a href="mzlib_unit.html" class="tocviewlink" data-pltdoc="x">Units</a></td></tr><tr><td align="right">8 </td><td><a href="contracts.html" class="tocviewlink" data-pltdoc="x">Contracts</a></td></tr><tr><td align="right">9 </td><td><a href="match.html" class="tocviewlink" data-pltdoc="x">Pattern Matching</a></td></tr><tr><td align="right">10 </td><td><a href="control.html" class="tocviewlink" data-pltdoc="x">Control Flow</a></td></tr><tr><td align="right">11 </td><td><a href="concurrency.html" class="tocviewlink" data-pltdoc="x">Concurrency and Parallelism</a></td></tr><tr><td align="right">12 </td><td><a href="Macros.html" class="tocviewlink" data-pltdoc="x">Macros</a></td></tr><tr><td align="right">13 </td><td><a href="input-and-output.html" class="tocviewlink" data-pltdoc="x">Input and Output</a></td></tr><tr><td align="right">14 </td><td><a href="security.html" class="tocviewlink" data-pltdoc="x">Reflection and Security</a></td></tr><tr><td align="right">15 </td><td><a href="os.html" class="tocviewlink" data-pltdoc="x">Operating System</a></td></tr><tr><td align="right">16 </td><td><a href="memory.html" class="tocviewlink" data-pltdoc="x">Memory Management</a></td></tr><tr><td align="right">17 </td><td><a href="unsafe.html" class="tocviewlink" data-pltdoc="x">Unsafe Operations</a></td></tr><tr><td align="right">18 </td><td><a href="running.html" class="tocviewselflink" data-pltdoc="x">Running Racket</a></td></tr><tr><td align="right"></td><td><a href="doc-bibliography.html" class="tocviewlink" data-pltdoc="x">Bibliography</a></td></tr><tr><td align="right"></td><td><a href="doc-index.html" class="tocviewlink" data-pltdoc="x">Index</a></td></tr></table></div></div><div class="tocviewlist"><table cellspacing="0" cellpadding="0"><tr><td style="width: 1em;"><a href="javascript:void(0);" title="Expand/Collapse" class="tocviewtoggle" onclick="TocviewToggle(this,"tocview_1");">▼</a></td><td>18 </td><td><a href="running.html" class="tocviewlink" data-pltdoc="x">Running Racket</a></td></tr></table><div class="tocviewsublist" style="display: block;" id="tocview_1"><table cellspacing="0" cellpadding="0"><tr><td align="right">18.1 </td><td><a href="running-sa.html" class="tocviewlink" data-pltdoc="x">Running Racket or GRacket</a></td></tr><tr><td align="right">18.2 </td><td><a href="collects.html" class="tocviewlink" data-pltdoc="x">Libraries and Collections</a></td></tr><tr><td align="right">18.3 </td><td><a href="Interactive_Help.html" class="tocviewlink" data-pltdoc="x">Interactive Help</a></td></tr><tr><td align="right">18.4 </td><td><a href="" class="tocviewselflink" data-pltdoc="x">Interactive Module Loading</a></td></tr><tr><td align="right">18.5 </td><td><a href="debugging.html" class="tocviewlink" data-pltdoc="x">Debugging</a></td></tr><tr><td align="right">18.6 </td><td><a href="Kernel_Forms_and_Functions.html" class="tocviewlink" data-pltdoc="x">Kernel Forms and Functions</a></td></tr></table></div></div><div class="tocviewlist"><table cellspacing="0" cellpadding="0"><tr><td style="width: 1em;"><a href="javascript:void(0);" title="Expand/Collapse" class="tocviewtoggle" onclick="TocviewToggle(this,"tocview_2");">►</a></td><td>18.4 </td><td><a href="" class="tocviewselflink" data-pltdoc="x">Interactive Module Loading</a></td></tr></table><div class="tocviewsublistbottom" style="display: none;" id="tocview_2"><table cellspacing="0" cellpadding="0"><tr><td align="right">18.4.1 </td><td><a href="#%28part._enter%29" class="tocviewlink" data-pltdoc="x">Entering Modules</a></td></tr><tr><td align="right">18.4.2 </td><td><a href="#%28part._rerequire%29" class="tocviewlink" data-pltdoc="x">Loading and Reloading Modules</a></td></tr></table></div></div></div><div class="tocsub"><div class="tocsubtitle">On this page:</div><table class="tocsublist" cellspacing="0"><tr><td><span class="tocsublinknumber">18.4.1<tt> </tt></span><a href="#%28part._enter%29" class="tocsubseclink" data-pltdoc="x">Entering Modules</a></td></tr><tr><td><a href="#%28form._%28%28lib._racket%2Fenter..rkt%29._enter%21%29%29" class="tocsubnonseclink" data-pltdoc="x"><span class="RktSym"><span class="RktStxLink">enter!</span></span></a></td></tr><tr><td><a href="#%28def._%28%28lib._racket%2Fenter..rkt%29._dynamic-enter%21%29%29" class="tocsubnonseclink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">dynamic-<wbr></wbr>enter!</span></span></a></td></tr><tr><td><span class="tocsublinknumber">18.4.2<tt> </tt></span><a href="#%28part._rerequire%29" class="tocsubseclink" data-pltdoc="x">Loading and Reloading Modules</a></td></tr><tr><td><a href="#%28def._%28%28lib._racket%2Frerequire..rkt%29._dynamic-rerequire%29%29" class="tocsubnonseclink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">dynamic-<wbr></wbr>rerequire</span></span></a></td></tr></table></div></div><div class="maincolumn"><div class="main"><div class="navsettop"><span class="navleft"><form class="searchform"><input class="searchbox" style="color: #888;" type="text" value="...search manuals..." title="Enter a search string to search the manuals" onkeypress="return DoSearchKey(event, this, "6.7", "../");" onfocus="this.style.color="black"; this.style.textAlign="left"; if (this.value == "...search manuals...") this.value="";" onblur="if (this.value.match(/^ *$/)) { this.style.color="#888"; this.style.textAlign="center"; this.value="...search manuals..."; }"/></form> <a href="../index.html" title="up to the documentation top" data-pltdoc="x" onclick="return GotoPLTRoot("6.7");">top</a></span><span class="navright"> <a href="Interactive_Help.html" title="backward to "18.3 Interactive Help"" data-pltdoc="x">← prev</a> <a href="running.html" title="up to "18 Running Racket"" data-pltdoc="x">up</a> <a href="debugging.html" title="forward to "18.5 Debugging"" data-pltdoc="x">next →</a></span> </div><h4 x-source-module="(lib "scribblings/reference/reference.scrbl")" x-source-pkg="racket-doc" x-part-tag=""interactive"">18.4<tt> </tt><a name="(part._interactive)"></a>Interactive Module Loading</h4><p>The <a href="#%28mod-path._racket%2Frerequire%29" class="RktModLink" data-pltdoc="x"><span class="RktSym">racket/rerequire</span></a> and <a href="#%28mod-path._racket%2Fenter%29" class="RktModLink" data-pltdoc="x"><span class="RktSym">racket/enter</span></a>
libraries provide support for loading, reloading, and using modules.</p><h5 x-source-module="(lib "scribblings/reference/reference.scrbl")" x-source-pkg="racket-doc" x-part-tag=""enter"">18.4.1<tt> </tt><a name="(part._enter)"></a><a name="(mod-path._racket/enter)"></a>Entering Modules</h5><p><div class="SIntrapara"><table cellspacing="0" cellpadding="0" class="defmodule"><tr><td align="left"><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><a href="require.html#%28form._%28%28lib._racket%2Fprivate%2Fbase..rkt%29._require%29%29" class="RktStxLink" data-pltdoc="x">require</a></span><span class="stt"> </span><a href="#%28mod-path._racket%2Fenter%29" class="RktModLink" data-pltdoc="x"><span class="RktSym">racket/enter</span></a><span class="RktPn">)</span></td><td align="right"><span class="RpackageSpec"><span class="Smaller"> package:</span> <span class="stt">base</span></span></td></tr></table></div><div class="SIntrapara">The bindings documented in this section are provided by the <a href="#%28mod-path._racket%2Fenter%29" class="RktModLink" data-pltdoc="x"><span class="RktSym">racket/enter</span></a> and <a href="running-sa.html#%28mod-path._racket%2Finit%29" class="RktModLink" data-pltdoc="x"><span class="RktSym">racket/init</span></a> libraries, which means that they are available when the Racket executable is started with no command-line arguments. They are not provided by <a href="index.html" class="RktModLink" data-pltdoc="x"><span class="RktSym">racket/base</span></a> or <a href="index.html" class="RktModLink" data-pltdoc="x"><span class="RktSym">racket</span></a>.</div></p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>syntax</p></div></div><p class="RForeground"><span class="RktPn">(</span><a name="(form._((lib._racket/enter..rkt)._enter!))"></a><span title="Provided from: racket/enter, racket/init | Package: base"><span class="RktSym"><a href="#%28form._%28%28lib._racket%2Fenter..rkt%29._enter%21%29%29" class="RktStxDef RktStxLink" data-pltdoc="x">enter!</a></span></span><span class="hspace"> </span><span class="RktVar">module-path</span><span class="RktPn">)</span></p></blockquote></td></tr><tr><td><span class="RktPn">(</span><span class="RktSym"><a href="#%28form._%28%28lib._racket%2Fenter..rkt%29._enter%21%29%29" class="RktStxDef RktStxLink" data-pltdoc="x">enter!</a></span><span class="hspace"> </span><span class="RktVal">#f</span><span class="RktPn">)</span></td></tr><tr><td><span class="RktPn">(</span><span class="RktSym"><a href="#%28form._%28%28lib._racket%2Fenter..rkt%29._enter%21%29%29" class="RktStxDef RktStxLink" data-pltdoc="x">enter!</a></span><span class="hspace"> </span><span class="RktVar">module-path</span><span class="hspace"> </span><span class="RktVar">flag</span><span class="hspace"> </span><span class="RktMeta">...+</span><span class="RktPn">)</span></td></tr><tr><td><span class="stt"> </span></td></tr><tr><td><table cellspacing="0" cellpadding="0" class="specgrammar"><tr><td align="right" valign="baseline"><span class="RktVar">flag</span></td><td align="left" valign="baseline"><span class="stt"> </span></td><td align="center" valign="baseline">=</td><td align="left" valign="baseline"><span class="stt"> </span></td><td align="left" valign="baseline"><span class="RktPn">#:quiet</span></td></tr><tr><td align="right" valign="baseline"><span class="stt"> </span></td><td align="left" valign="baseline"><span class="stt"> </span></td><td align="center" valign="baseline">|</td><td align="left" valign="baseline"><span class="stt"> </span></td><td align="left" valign="baseline"><span class="RktPn">#:verbose-reload</span></td></tr><tr><td align="right" valign="baseline"><span class="stt"> </span></td><td align="left" valign="baseline"><span class="stt"> </span></td><td align="center" valign="baseline">|</td><td align="left" valign="baseline"><span class="stt"> </span></td><td align="left" valign="baseline"><span class="RktPn">#:verbose</span></td></tr><tr><td align="right" valign="baseline"><span class="stt"> </span></td><td align="left" valign="baseline"><span class="stt"> </span></td><td align="center" valign="baseline">|</td><td align="left" valign="baseline"><span class="stt"> </span></td><td align="left" valign="baseline"><span class="RktPn">#:dont-re-require-enter</span></td></tr></table></td></tr></table></blockquote></div><div class="SIntrapara">Intended for use in a <a href="eval.html#%28tech._repl%29" class="techoutside" data-pltdoc="x"><span class="techinside">REPL</span></a>, such as when <span class="stt">racket</span> is
started in interactive mode. When a <span class="RktVar">module-path</span> is provided
(in the same sense as for <span class="RktSym"><a href="require.html#%28form._%28%28lib._racket%2Fprivate%2Fbase..rkt%29._require%29%29" class="RktStxLink" data-pltdoc="x">require</a></span>), the corresponding module
is loaded or invoked via <span class="RktSym"><a href="#%28def._%28%28lib._racket%2Frerequire..rkt%29._dynamic-rerequire%29%29" class="RktValLink" data-pltdoc="x">dynamic-rerequire</a></span>, and the current <a href="syntax-model.html#%28tech._namespace%29" class="techoutside" data-pltdoc="x"><span class="techinside">namespace</span></a> is changed to
the body of the module via <span class="RktSym"><a href="Namespaces.html#%28def._%28%28quote._~23~25kernel%29._module-~3enamespace%29%29" class="RktValLink" data-pltdoc="x">module->namespace</a></span>. When
<span class="RktVal">#f</span> is provided, then the current <a href="syntax-model.html#%28tech._namespace%29" class="techoutside" data-pltdoc="x"><span class="techinside">namespace</span></a> is restored
to the original one.</div></p><p><div class="SIntrapara">Additional <span class="RktVar">flag</span>s can customize aspects of <span class="RktSym"><a href="#%28form._%28%28lib._racket%2Fenter..rkt%29._enter%21%29%29" class="RktStxLink" data-pltdoc="x">enter!</a></span>:
</div><div class="SIntrapara"><ul><li><p>The <span class="RktPn">#:verbose</span>, <span class="RktPn">#:verbose-reload</span>, and
<span class="RktPn">#:quiet</span> flags correspond to <span class="RktVal">'</span><span class="RktVal">all</span>,
<span class="RktVal">'</span><span class="RktVal">reload</span>, and <span class="RktVal">'</span><span class="RktVal">none</span> verbosity for
<span class="RktSym"><a href="#%28def._%28%28lib._racket%2Frerequire..rkt%29._dynamic-rerequire%29%29" class="RktValLink" data-pltdoc="x">dynamic-rerequire</a></span>. The default corresponds to
<span class="RktPn">#:verbose-reload</span>.</p></li><li><p>After switching namespaces to the designated module,
<span class="RktSym"><a href="#%28form._%28%28lib._racket%2Fenter..rkt%29._enter%21%29%29" class="RktStxLink" data-pltdoc="x">enter!</a></span> automatically requires <span class="RktSym">racket/enter</span> into the
namespace, so that <span class="RktSym"><a href="#%28form._%28%28lib._racket%2Fenter..rkt%29._enter%21%29%29" class="RktStxLink" data-pltdoc="x">enter!</a></span> can be used to switch namespaces
again. In some cases, requiring <span class="RktSym">racket/enter</span>
might not be desirable (e.g., in a tool
that uses <span class="RktSym">racket/enter</span>); use the
<span class="RktPn">#:dont-re-require-enter</span> flag to disable the require.</p></li></ul></div></p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>procedure</p></div></div><table cellspacing="0" cellpadding="0" class="prototype RForeground"><tr><td valign="top"><span class="RktPn">(</span><a name="(def._((lib._racket/enter..rkt)._dynamic-enter!))"></a><span title="Provided from: racket/enter, racket/init | Package: base"><span class="RktSym"><a href="#%28def._%28%28lib._racket%2Fenter..rkt%29._dynamic-enter%21%29%29" class="RktValDef RktValLink" data-pltdoc="x">dynamic-enter!</a></span></span></td><td valign="top"><span class="hspace"> </span></td><td valign="top"><span class="RktVar">mod</span></td><td valign="top"><span class="hspace"> </span></td><td valign="top"><span class="hspace"> </span></td><td valign="top"><span class="hspace"> </span></td><td valign="top"><span class="hspace"> </span></td></tr><tr><td valign="top"><span class="hspace"> </span></td><td valign="top"><span class="hspace"> </span>[</td><td valign="top"><span class="RktPn">#:verbosity</span><span class="hspace"> </span><span class="RktVar">verbosity</span></td><td valign="top"><span class="hspace"> </span></td><td valign="top"><span class="hspace"> </span></td><td valign="top"><span class="hspace"> </span></td><td valign="top"><span class="hspace"> </span></td></tr><tr><td valign="top"><span class="hspace"> </span></td><td valign="top"><span class="hspace"> </span></td><td valign="top"><span class="RktPn">#:re-require-enter?</span><span class="hspace"> </span><span class="RktVar">re-require-enter?</span>]<span class="RktPn">)</span></td><td valign="top"><span class="hspace"> </span></td><td valign="top">→</td><td valign="top"><span class="hspace"> </span></td><td valign="top"><span class="RktSym"><a href="void.html#%28def._%28%28quote._~23~25kernel%29._void~3f%29%29" class="RktValLink" data-pltdoc="x">void?</a></span></td></tr></table></blockquote></td></tr><tr><td><span class="hspace"> </span><span class="RktVar">mod</span><span class="hspace"> </span>:<span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><a href="data-structure-contracts.html#%28def._%28%28lib._racket%2Fcontract%2Fbase..rkt%29._or%2Fc%29%29" class="RktValLink" data-pltdoc="x">or/c</a></span><span class="hspace"> </span><span class="RktSym"><a href="Module_Names_and_Loading.html#%28def._%28%28quote._~23~25kernel%29._module-path~3f%29%29" class="RktValLink" data-pltdoc="x">module-path?</a></span><span class="hspace"> </span><span class="RktVal">#f</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVar">verbosity</span><span class="hspace"> </span>:<span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><a href="data-structure-contracts.html#%28def._%28%28lib._racket%2Fcontract%2Fbase..rkt%29._or%2Fc%29%29" class="RktValLink" data-pltdoc="x">or/c</a></span><span class="hspace"> </span><span class="RktVal">'</span><span class="RktVal">all</span><span class="hspace"> </span><span class="RktVal">'</span><span class="RktVal">reload</span><span class="hspace"> </span><span class="RktVal">'</span><span class="RktVal">none</span><span class="RktPn">)</span><span class="hspace"> </span>=<span class="hspace"> </span><span class="RktVal">'</span><span class="RktVal">reload</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVar">re-require-enter?</span><span class="hspace"> </span>:<span class="hspace"> </span><span class="RktSym"><a href="data-structure-contracts.html#%28def._%28%28lib._racket%2Fcontract%2Fprivate%2Fmisc..rkt%29._any%2Fc%29%29" class="RktValLink" data-pltdoc="x">any/c</a></span><span class="hspace"> </span>=<span class="hspace"> </span><span class="RktVal">#t</span></td></tr></table></blockquote></div><div class="SIntrapara">Procedure variant of <span class="RktSym"><a href="#%28form._%28%28lib._racket%2Fenter..rkt%29._enter%21%29%29" class="RktStxLink" data-pltdoc="x">enter!</a></span>, where <span class="RktVar">verbosity</span> is
passed along to <span class="RktSym"><a href="#%28def._%28%28lib._racket%2Frerequire..rkt%29._dynamic-rerequire%29%29" class="RktValLink" data-pltdoc="x">dynamic-rerequire</a></span> and
<span class="RktVar">re-require-enter?</span> determines whether <span class="RktSym"><a href="#%28def._%28%28lib._racket%2Fenter..rkt%29._dynamic-enter%21%29%29" class="RktValLink" data-pltdoc="x">dynamic-enter!</a></span>
requires <span class="RktSym">racket/enter</span> in a newly entered namespace.</div></p><p class="SHistory">Added in version 6.0.0.1 of package <span class="stt">base</span>.</p><h5 x-source-module="(lib "scribblings/reference/reference.scrbl")" x-source-pkg="racket-doc" x-part-tag=""rerequire"">18.4.2<tt> </tt><a name="(part._rerequire)"></a><a name="(mod-path._racket/rerequire)"></a>Loading and Reloading Modules</h5><p><div class="SIntrapara"><table cellspacing="0" cellpadding="0" class="defmodule"><tr><td align="left"><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><a href="require.html#%28form._%28%28lib._racket%2Fprivate%2Fbase..rkt%29._require%29%29" class="RktStxLink" data-pltdoc="x">require</a></span><span class="stt"> </span><a href="#%28mod-path._racket%2Frerequire%29" class="RktModLink" data-pltdoc="x"><span class="RktSym">racket/rerequire</span></a><span class="RktPn">)</span></td><td align="right"><span class="RpackageSpec"><span class="Smaller"> package:</span> <span class="stt">base</span></span></td></tr></table></div><div class="SIntrapara">The bindings documented in this section are provided by the <a href="#%28mod-path._racket%2Frerequire%29" class="RktModLink" data-pltdoc="x"><span class="RktSym">racket/rerequire</span></a> library, not <a href="index.html" class="RktModLink" data-pltdoc="x"><span class="RktSym">racket/base</span></a> or <a href="index.html" class="RktModLink" data-pltdoc="x"><span class="RktSym">racket</span></a>.</div></p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>procedure</p></div></div><table cellspacing="0" cellpadding="0" class="prototype RForeground"><tr><td valign="top"><span class="RktPn">(</span><a name="(def._((lib._racket/rerequire..rkt)._dynamic-rerequire))"></a><span title="Provided from: racket/rerequire | Package: base"><span class="RktSym"><a href="#%28def._%28%28lib._racket%2Frerequire..rkt%29._dynamic-rerequire%29%29" class="RktValDef RktValLink" data-pltdoc="x">dynamic-rerequire</a></span></span></td><td valign="top"><span class="hspace"> </span></td><td valign="top"><span class="RktVar">module-path</span></td><td valign="top"><span class="hspace"> </span></td><td valign="top"><span class="hspace"> </span></td><td valign="top"><span class="hspace"> </span></td><td valign="top"><span class="hspace"> </span></td></tr><tr><td valign="top"><span class="hspace"> </span></td><td valign="top"><span class="hspace"> </span>[</td><td valign="top"><span class="RktPn">#:verbosity</span><span class="hspace"> </span><span class="RktVar">verbosity</span>]<span class="RktPn">)</span></td><td valign="top"><span class="hspace"> </span></td><td valign="top">→</td><td valign="top"><span class="hspace"> </span></td><td valign="top"><span class="RktPn">(</span><span class="RktSym"><a href="data-structure-contracts.html#%28def._%28%28lib._racket%2Fcontract%2Fbase..rkt%29._listof%29%29" class="RktValLink" data-pltdoc="x">listof</a></span><span class="hspace"> </span><span class="RktSym"><a href="Manipulating_Paths.html#%28def._%28%28quote._~23~25kernel%29._path~3f%29%29" class="RktValLink" data-pltdoc="x">path?</a></span><span class="RktPn">)</span></td></tr></table></blockquote></td></tr><tr><td><span class="hspace"> </span><span class="RktVar">module-path</span><span class="hspace"> </span>:<span class="hspace"> </span><span class="RktSym"><a href="Module_Names_and_Loading.html#%28def._%28%28quote._~23~25kernel%29._module-path~3f%29%29" class="RktValLink" data-pltdoc="x">module-path?</a></span></td></tr><tr><td><span class="hspace"> </span><span class="RktVar">verbosity</span><span class="hspace"> </span>:<span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><a href="data-structure-contracts.html#%28def._%28%28lib._racket%2Fcontract%2Fbase..rkt%29._or%2Fc%29%29" class="RktValLink" data-pltdoc="x">or/c</a></span><span class="hspace"> </span><span class="RktVal">'</span><span class="RktVal">all</span><span class="hspace"> </span><span class="RktVal">'</span><span class="RktVal">reload</span><span class="hspace"> </span><span class="RktVal">'</span><span class="RktVal">none</span><span class="RktPn">)</span><span class="hspace"> </span>=<span class="hspace"> </span><span class="RktVal">'</span><span class="RktVal">reload</span></td></tr></table></blockquote></div><div class="SIntrapara">Like <span class="RktPn">(</span><span class="RktSym"><a href="Module_Names_and_Loading.html#%28def._%28%28quote._~23~25kernel%29._dynamic-require%29%29" class="RktValLink" data-pltdoc="x">dynamic-require</a></span><span class="stt"> </span><span class="RktVar">module-path</span><span class="stt"> </span><span class="RktVal">0</span><span class="RktPn">)</span>, but with reloading
support. The <span class="RktSym"><a href="#%28def._%28%28lib._racket%2Frerequire..rkt%29._dynamic-rerequire%29%29" class="RktValLink" data-pltdoc="x">dynamic-rerequire</a></span> function is intended for use
in an interactive environment, especially via <span class="RktSym">enter!</span>.</div></p><p>If invoking <span class="RktVar">module-path</span> requires loading any files, then
modification dates of the files are recorded. If the file is modified,
then a later <span class="RktSym"><a href="#%28def._%28%28lib._racket%2Frerequire..rkt%29._dynamic-rerequire%29%29" class="RktValLink" data-pltdoc="x">dynamic-rerequire</a></span> re-loads the module from source; see also
<a href="eval-model.html#%28part._module-redeclare%29" data-pltdoc="x">Module Redeclarations</a>. Similarly if a later <span class="RktSym"><a href="#%28def._%28%28lib._racket%2Frerequire..rkt%29._dynamic-rerequire%29%29" class="RktValLink" data-pltdoc="x">dynamic-rerequire</a></span>
transitively <span class="RktSym"><a href="require.html#%28form._%28%28lib._racket%2Fprivate%2Fbase..rkt%29._require%29%29" class="RktStxLink" data-pltdoc="x">require</a></span>s a modified module, then the required
module is re-loaded. Re-loading support works only for modules that
are first loaded (either directly or indirectly through transitive
<span class="RktSym"><a href="require.html#%28form._%28%28lib._racket%2Fprivate%2Fbase..rkt%29._require%29%29" class="RktStxLink" data-pltdoc="x">require</a></span>s) via <span class="RktSym"><a href="#%28def._%28%28lib._racket%2Frerequire..rkt%29._dynamic-rerequire%29%29" class="RktValLink" data-pltdoc="x">dynamic-rerequire</a></span>.</p><p>The returned list contains the absolute paths to the modules that were
reloaded on this call to <span class="RktSym"><a href="#%28def._%28%28lib._racket%2Frerequire..rkt%29._dynamic-rerequire%29%29" class="RktValLink" data-pltdoc="x">dynamic-rerequire</a></span>. If the returned
list is empty, no modules were changed or loaded.</p><p>When <span class="RktSym">enter!</span> loads or re-loads a module from a file, it can
print a message to <span class="RktPn">(</span><span class="RktSym"><a href="port-ops.html#%28def._%28%28quote._~23~25kernel%29._current-error-port%29%29" class="RktValLink" data-pltdoc="x">current-error-port</a></span><span class="RktPn">)</span>, depending on
<span class="RktVar">verbosity</span>: <span class="RktVal">'</span><span class="RktVal">all</span> prints a message for all loads and
re-loads, <span class="RktVal">'</span><span class="RktVal">reload</span> prints a message only for
re-loaded modules, and <span class="RktVal">'</span><span class="RktVal">none</span> disables printouts.</p><div class="navsetbottom"><span class="navleft"><form class="searchform"><input class="searchbox" style="color: #888;" type="text" value="...search manuals..." title="Enter a search string to search the manuals" onkeypress="return DoSearchKey(event, this, "6.7", "../");" onfocus="this.style.color="black"; this.style.textAlign="left"; if (this.value == "...search manuals...") this.value="";" onblur="if (this.value.match(/^ *$/)) { this.style.color="#888"; this.style.textAlign="center"; this.value="...search manuals..."; }"/></form> <a href="../index.html" title="up to the documentation top" data-pltdoc="x" onclick="return GotoPLTRoot("6.7");">top</a></span><span class="navright"> <a href="Interactive_Help.html" title="backward to "18.3 Interactive Help"" data-pltdoc="x">← prev</a> <a href="running.html" title="up to "18 Running Racket"" data-pltdoc="x">up</a> <a href="debugging.html" title="forward to "18.5 Debugging"" data-pltdoc="x">next →</a></span> </div></div></div><div id="contextindicator"> </div></body></html>
|