Update of /cvsroot/luabind/luabind/luabind/doc
In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv343/luabind/doc
Modified Files:
changes.txt docs.html docs.rst
Log Message:
added luabind::nil and assignment operators to handle it
Index: docs.html
===================================================================
RCS file: /cvsroot/luabind/luabind/luabind/doc/docs.html,v
retrieving revision 1.55
retrieving revision 1.56
diff -u -d -r1.55 -r1.56
--- docs.html 26 Mar 2006 15:47:29 -0000 1.55
+++ docs.html 13 Jun 2006 23:27:57 -0000 1.56
@@ -3,12 +3,307 @@
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-<meta name="generator" content="Docutils 0.3.9: http://docutils.sourceforge.net/" />
+<meta name="generator" content="Docutils 0.4: http://docutils.sourceforge.net/" />
<title>luabind</title>
<meta name="author" content="Daniel Wallin, Arvid Norberg" />
<meta name="copyright" content="Copyright Daniel Wallin, Arvid Norberg 2003." />
-<meta name="date" content="2006-01-11" />
-<link rel="stylesheet" href="style.css" type="text/css" />
+<meta name="date" content="2006-03-26" />
[...1905 lines suppressed...]
</dl>
</div>
-<div class="section" id="known-issues">
-<h1><a name="known-issues">18 Known issues</a></h1>
+<div class="section">
+<h1><a id="known-issues" name="known-issues">18 Known issues</a></h1>
<ul class="simple">
<li>You cannot use strings with extra nulls in them as member names that refers
to C++ members.</li>
@@ -3020,8 +3334,8 @@
done with static pointer offsets.</li>
</ul>
</div>
-<div class="section" id="acknowledgments">
-<h1><a name="acknowledgments">19 Acknowledgments</a></h1>
+<div class="section">
+<h1><a id="acknowledgments" name="acknowledgments">19 Acknowledgments</a></h1>
<p>Written by Daniel Wallin and Arvid Norberg. © Copyright 2003.
All rights reserved.</p>
<p>Evan Wies has contributed with thorough testing, countless bug reports
Index: docs.rst
===================================================================
RCS file: /cvsroot/luabind/luabind/luabind/doc/docs.rst,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -d -r1.28 -r1.29
--- docs.rst 26 Mar 2006 16:16:30 -0000 1.28
+++ docs.rst 13 Jun 2006 23:27:57 -0000 1.29
@@ -137,7 +137,9 @@
LUA_PATH
Point this to your Lua directory. The build system will assume that the
include and library files are located in ``$(LUA_PATH)/include/`` and
- ``$(LUA_PATH)/lib/.``
+ ``$(LUA_PATH)/lib/.``. If this environment variable is not defined, the
+ Jamfile will try to invoke ``pkg-config`` in order to find lua. It will
+ look for lua 5.1 (``lua5.1`` as the package is called on debian systems).
For backward compatibility, there is also a makefile in the root-directory that
will build the library and the test programs. If you are using a UNIX-system (or
@@ -1279,6 +1281,23 @@
This function creates a new table and returns it as an object.
+Assigning nil
+-------------
+
+To set a table entry to ``nil``, you can use ``luabind::nil``. It will avoid
+having to take the detour by first assigning ``nil`` to an object and then
+assign that to the table entry. It will simply result in a ``lua_pushnil()``
+call, instead of copying an object.
+
+Example::
+
+ using luabind;
+ object table = newtable(L);
+ table["foo"] = "bar";
+
+ // now, clear the "foo"-field
+ table["foo"] = nil;
+
Defining classes in Lua
=======================
Index: changes.txt
===================================================================
RCS file: /cvsroot/luabind/luabind/luabind/doc/changes.txt,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- changes.txt 28 Nov 2005 20:55:33 -0000 1.2
+++ changes.txt 13 Jun 2006 23:27:57 -0000 1.3
@@ -1,3 +1,11 @@
+LUABIND 7.1 changes
+===================
+
+* Applied patches from Evan Wies to support lua 5.1
+* added a new assignment operator and a special value,
+ luabind::nil, to set table entries to nil.
+
+
LUABIND BETA 7 changes
======================
|