summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorLua Team <team@lua.org>2014-12-16 12:00:00 +0000
committerrepogen <>2014-12-16 12:00:00 +0000
commit514a0c89db308fafb79ee7cbfad11f74fcf3f652 (patch)
tree42ed73648b929eab864188e09024c64736f91e54 /doc
parentfd9a52f7ff522a363ff2495d33b331c221981d60 (diff)
downloadlua-github-5.3.0-rc1.tar.gz
Lua 5.3.0-rc15.3.0-rc1
Diffstat (limited to 'doc')
-rw-r--r--doc/manual.html18
-rw-r--r--doc/readme.html24
2 files changed, 22 insertions, 20 deletions
diff --git a/doc/manual.html b/doc/manual.html
index b8f93990..b64747db 100644
--- a/doc/manual.html
+++ b/doc/manual.html
@@ -33,7 +33,7 @@ Freely available under the terms of the
<!-- ====================================================================== -->
<p>
-<!-- $Id: manual.of,v 1.140 2014/12/10 11:58:42 roberto Exp $ -->
+<!-- $Id: manual.of,v 1.141 2014/12/16 16:21:31 roberto Exp $ -->
@@ -143,9 +143,9 @@ Standard Lua uses 64-bit integers and double-precision (64-bit) floats,
but you can also compile Lua so that it
uses 32-bit integers and/or single-precision (32-bit) floats.
The option with 32 bits for both integers and floats
-(called <em>Small Lua</em>) is particularly attractive
+is particularly attractive
for small machines and embedded systems.
-(See <code>LUA_INT</code> in file <code>luaconf.h</code>.)
+(See macro <code>LUA_32BITS</code> in file <code>luaconf.h</code>.)
<p>
@@ -1903,7 +1903,7 @@ Lua supports the following bitwise operators:
<ul>
<li><b><code>&amp;</code>: </b>bitwise and</li>
-<li><b><code>|</code>: </b>bitwise or</li>
+<li><b><code>&#124;</code>: </b>bitwise or</li>
<li><b><code>~</code>: </b>bitwise exclusive or</li>
<li><b><code>&gt;&gt;</code>: </b>right shift</li>
<li><b><code>&lt;&lt;</code>: </b>left shift</li>
@@ -3094,7 +3094,7 @@ The value of <code>op</code> must be one of the following constants:
<li><b><a name="pdf-LUA_OPUNM"><code>LUA_OPUNM</code></a>: </b> performs mathematical negation (unary <code>-</code>)</li>
<li><b><a name="pdf-LUA_OPBNOT"><code>LUA_OPBNOT</code></a>: </b> performs bitwise negation (<code>~</code>)</li>
<li><b><a name="pdf-LUA_OPBAND"><code>LUA_OPBAND</code></a>: </b> performs bitwise and (<code>&amp;</code>)</li>
-<li><b><a name="pdf-LUA_OPBOR"><code>LUA_OPBOR</code></a>| performs bitwise or (<code>: </b></code>)</li>
+<li><b><a name="pdf-LUA_OPBOR"><code>LUA_OPBOR</code></a>: </b> performs bitwise or (<code>|</code>)</li>
<li><b><a name="pdf-LUA_OPBXOR"><code>LUA_OPBXOR</code></a>: </b> performs bitwise exclusive or (<code>~</code>)</li>
<li><b><a name="pdf-LUA_OPSHL"><code>LUA_OPSHL</code></a>: </b> performs left shift (<code>&lt;&lt;</code>)</li>
<li><b><a name="pdf-LUA_OPSHR"><code>LUA_OPSHR</code></a>: </b> performs right shift (<code>&gt;&gt;</code>)</li>
@@ -7219,9 +7219,9 @@ so that the construction
<pre>
for i,v in ipairs(t) do <em>body</em> end
</pre><p>
-will iterate over the pairs
+will iterate over the key&ndash;value pairs
(<code>1,t[1]</code>), (<code>2,t[2]</code>), ...,
-up to the first integer key absent from the table.
+up to the first nil value.
@@ -10588,7 +10588,7 @@ The <code>bit32</code> library has been deprecated.
It is easy to require a compatible external library or,
better yet, to replace its functions with appropriate bitwise operations.
(Keep in mind that <code>bit32</code> operates on 32-bit integers,
-while the bitwise operators in Standard Lua operate on 64-bit integers.)
+while the bitwise operators in standard Lua operate on 64-bit integers.)
</li>
<li>
@@ -10768,7 +10768,7 @@ and LiteralString, see <a href="#3.1">&sect;3.1</a>.)
<HR>
<SMALL CLASS="footer">
Last update:
-Wed Dec 10 15:49:17 BRST 2014
+Tue Dec 16 14:45:50 BRST 2014
</SMALL>
<!--
Last change: revised for Lua 5.3.0 (final)
diff --git a/doc/readme.html b/doc/readme.html
index 7a2d9dc8..0ace9660 100644
--- a/doc/readme.html
+++ b/doc/readme.html
@@ -251,6 +251,7 @@ compiler:
be linked statically into the host program and its symbols exported for
dynamic linking; <TT>src/Makefile</TT> does this for the Lua interpreter.
For Windows, we recommend that the Lua library be a DLL.
+ In all cases, the compiler luac should be linked statically.
<P>
As mentioned above, you may edit <TT>src/luaconf.h</TT> to customize
@@ -268,9 +269,10 @@ lists the
<H3>Main changes</H3>
<UL>
<LI> integers (64-bit by default)
-<LI> official support for small architectures ("Small Lua" with 32-bit numbers)
+<LI> official support for 32-bit numbers
<LI> bitwise operators
<LI> basic utf-8 support
+<LI> functions for packing and unpacking values
</UL>
@@ -280,30 +282,30 @@ Here are the other changes introduced in Lua 5.3:
<LI> userdata can have any Lua value as uservalue
<LI> integer division
<LI> more flexible rules for some metamethods
-<LI> utf-8 escapes in literal strings
</UL>
<H3>Libraries</H3>
<UL>
-<LI> basic utf-8 library
<LI> <CODE>ipairs</CODE> and the table library respect metamethods
-<LI> functions for packing and unpacking values
<LI> strip option in <CODE>string.dump</CODE>
<LI> table library respects metamethods
<LI> new function <CODE>table.move</CODE>
+<LI> new function <CODE>string.pack</CODE>
+<LI> new function <CODE>string.unpack</CODE>
+<LI> new function <CODE>string.packsize</CODE>
</UL>
<H3>C API</H3>
<UL>
<LI> simpler API for continuation functions in C
-<LI> new functions:
-<CODE>lua_rotate</CODE>,
-<CODE>lua_isyieldable</CODE>,
-<CODE>lua_stringtonumber</CODE>,
-<CODE>lua_geti</CODE>,
-<CODE>lua_seti</CODE>
<LI> <CODE>lua_gettable</CODE> and similar functions return type of resulted value
<LI> strip option in <CODE>lua_dump</CODE>
+<LI> new function: <CODE>lua_geti</CODE>
+<LI> new function: <CODE>lua_seti</CODE>
+<LI> new function: <CODE>lua_isyieldable</CODE>
+<LI> new function: <CODE>lua_numbertointeger</CODE>
+<LI> new function: <CODE>lua_rotate</CODE>
+<LI> new function: <CODE>lua_stringtonumber</CODE>
</UL>
<H3>Lua standalone interpreter</H3>
@@ -359,7 +361,7 @@ THE SOFTWARE.
<HR>
<SMALL CLASS="footer">
Last update:
-Tue Dec 9 21:16:03 BRST 2014
+Fri Dec 12 09:58:42 BRST 2014
</SMALL>
<!--
Last change: updated for Lua 5.3.0 (final)