aboutsummaryrefslogtreecommitdiffstats
path: root/erts/doc/src
diff options
context:
space:
mode:
authorXavier Noria <[email protected]>2018-01-23 11:47:58 +0100
committerXavier Noria <[email protected]>2018-02-02 09:02:08 +0100
commit2ab931cec15917e1297aafce350439c8daa7a726 (patch)
treef1e5c320a329612633cb971056269d1b0d7ee1a7 /erts/doc/src
parent18d9afbd5c62bb7b7237fe0d580fc05737a096c1 (diff)
downloadotp-2ab931cec15917e1297aafce350439c8daa7a726.tar.gz
otp-2ab931cec15917e1297aafce350439c8daa7a726.tar.bz2
otp-2ab931cec15917e1297aafce350439c8daa7a726.zip
Reword docs related to the runtime system mode
The existing wording may be interpreted as saying that embedded mode eager loads all modules. This revision makes clear embedded mode only disables module auto loading. Since I was on it, I have reordered a couple of places to describe interactive first, and then embedded. It feels natural to cover first the default and positive mode (auto loads), and then its negation.
Diffstat (limited to 'erts/doc/src')
-rw-r--r--erts/doc/src/erl.xml12
1 files changed, 6 insertions, 6 deletions
diff --git a/erts/doc/src/erl.xml b/erts/doc/src/erl.xml
index bd824b3405..99f0421080 100644
--- a/erts/doc/src/erl.xml
+++ b/erts/doc/src/erl.xml
@@ -360,11 +360,12 @@
</item>
<tag><c><![CDATA[-mode interactive | embedded]]></c></tag>
<item>
- <p>Indicates if the system is to load code dynamically
- (<c><![CDATA[interactive]]></c>), or if all code is to be loaded
- during system initialization (<c><![CDATA[embedded]]></c>); see
- <seealso marker="kernel:code"><c>code(3)</c></seealso>.
- Defaults to <c><![CDATA[interactive]]></c>.</p>
+ <p>Modules are auto loaded when they are first referenced if the
+ runtime system runs in <c><![CDATA[interactive]]></c> mode, which is
+ the default. In <c><![CDATA[embedded]]></c> mode modules are not auto
+ loaded. The latter is recommended when the boot script preloads all
+ modules, as conventionally happens in OTP releases. See
+ <seealso marker="kernel:code"><c>code(3)</c></seealso></p>.
</item>
<tag><c><![CDATA[-name Name]]></c></tag>
<item>
@@ -1693,4 +1694,3 @@ code:load_abs("..../user_default"). ]]></code>
<seealso marker="tools:make"><c>make(3)</c></seealso></p>
</section>
</comref>
-