From f8a18ec679f0fc4627e95b893bc0d3560052dc64 Mon Sep 17 00:00:00 2001 From: Benoit Germain Date: Wed, 28 Nov 2018 17:00:45 +0100 Subject: Split a megafunction in smaller parts --- docs/index.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'docs/index.html') diff --git a/docs/index.html b/docs/index.html index 460a786..db8e7a0 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1553,7 +1553,7 @@ events to a common Linda, but... :).

Clonable full userdata in your own apps

- Starting with version 3.13, a new way of passing full userdata across lanes uses a new __lanesclone metamethod. A typical implementation would look like: + Starting with version 3.13.0, a new way of passing full userdata across lanes uses a new __lanesclone metamethod. A typical implementation would look like:
 static int clonable_lanesclone( lua_State* L)
 {
@@ -1580,6 +1580,7 @@ static int clonable_lanesclone( lua_State* L)
 

+ NOTE: In the event the source userdata has uservalues, it is not necessary to create them for the clone, Lanes will handle their cloning.
Of course, more complex objects may require smarter cloning behavior than a simple memcpy. Also, the module initialisation code should make each metatable accessible from the module table itself as in:
 int luaopen_deep_test(lua_State* L)
-- 
cgit v1.2.3-55-g6feb