diff website/src/manual.html @ 1353:8d95711f6615

replace java() with require "java"
author Franklin Schmidt <fschmidt@gmail.com>
date Wed, 20 Mar 2019 17:03:29 -0600
parents 60599adc27b8
children 372906d1d08b
line wrap: on
line diff
--- a/website/src/manual.html	Sun Mar 10 18:25:51 2019 -0600
+++ b/website/src/manual.html	Wed Mar 20 17:03:29 2019 -0600
@@ -229,7 +229,7 @@
 <h3 heading><a name="env" href="#env">Environments</a></h3>
 
 <p>
-The environment of a chunk starts with only two local variables: <code><a href="#require">require</a></code> and <code><a href="#java">java</a></code>.  These are functions are used to load and access libraries and other modules.  All other variables must be added to the environment using <a href="http://localhost:8080/manual.html#local_stmt">local declarations</a>.
+The environment of a chunk starts with only one local variable: <code><a href="#require">require</a></code>.  This function is used to load and access libraries and other modules.  All other variables must be added to the environment using <a href="http://localhost:8080/manual.html#local_stmt">local declarations</a>.
 
 <p>
 As will be discussed in <a href="#vars">Variables</a> and <a href=#assignment">Assignment</a>,
@@ -1761,13 +1761,7 @@
 <h3 heading><a name="default_lib" href="#default_lib">Default Environment</a></h3>
 
 <p>
-These are provided by default as local variables for any Luan code as described in <a href="#env">Environments</a>.
-
-
-<h4 heading><a name="java" href="#java"><code>java ()</code></a></h4>
-
-<p>
-This function enables Java in the current chunk if that chunk has permission to use Java.  If the chunk doesn't have permission to use Java, then an error is thrown.
+This is provided by default as a local variable for any Luan code as described in <a href="#env">Environments</a>.
 
 
 <h4 heading><a name="require" href="#require"><code>require (mod_uri)</code></a></h4>
@@ -1788,6 +1782,16 @@
 	end
 </pre>
 
+<p>
+A special case is:
+
+<pre>
+	require "java"
+</pre>
+
+<p>
+This enables Java in the current chunk if that chunk has permission to use Java.  If the chunk doesn't have permission to use Java, then an error is thrown.
+
 
 <h3 heading><a name="luan_lib" href="#luan_lib">Basic Functions</a></h3>