diff options
Diffstat (limited to 'deep_test/deep_test.lua')
-rw-r--r-- | deep_test/deep_test.lua | 6 |
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 |
2 | local dt = require "deep_test" | 2 | local dt = require "deep_test" |
3 | local deep = dt.new_deep() | 3 | local deep = dt.new_deep() |
4 | deep:set(666) | ||
4 | print( deep) | 5 | print( 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 | --[[ | |
8 | local lanes = require("lanes").configure() | 9 | local lanes = require("lanes").configure() |
9 | 10 | ||
10 | local l = lanes.linda "my linda" | 11 | local l = lanes.linda "my linda" |
11 | l.put( "key", deep) | 12 | l.put( "key", deep) |
12 | local out = l.get( "key") | 13 | local out = l.get( "key") |
13 | print( out) \ No newline at end of file | 14 | print( out) |
15 | ]] \ No newline at end of file | ||