aboutsummaryrefslogtreecommitdiff
path: root/deep_test/deep_test.lua
diff options
context:
space:
mode:
Diffstat (limited to 'deep_test/deep_test.lua')
-rw-r--r--deep_test/deep_test.lua6
1 files changed, 4 insertions, 2 deletions
diff --git a/deep_test/deep_test.lua b/deep_test/deep_test.lua
index 034c07d..fd78115 100644
--- a/deep_test/deep_test.lua
+++ b/deep_test/deep_test.lua
@@ -1,13 +1,15 @@
1-- create a deep-aware full userdata while Lanes isn't loaded 1-- create a deep-aware full userdata while Lanes isn't loaded
2local dt = require "deep_test" 2local dt = require "deep_test"
3local deep = dt.new_deep() 3local deep = dt.new_deep()
4deep:set(666)
4print( deep) 5print( deep)
5 6
6-- now load Lanes and see if that userdata is transferable 7-- now load Lanes and see if that userdata is transferable
7 8--[[
8local lanes = require("lanes").configure() 9local lanes = require("lanes").configure()
9 10
10local l = lanes.linda "my linda" 11local l = lanes.linda "my linda"
11l.put( "key", deep) 12l.put( "key", deep)
12local out = l.get( "key") 13local out = l.get( "key")
13print( out) \ No newline at end of file 14print( out)
15]] \ No newline at end of file