pluto

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

pluto

Александр Машин-2
Dear all,

I am experimenting with Pluto serialiser for Lua 5.1, insalled with sudo
luarocks install pluto (gcc issued some warnings).

Below is what I get:

alexander@maicube:~$ lua5.1
Lua 5.1.5  Copyright (C) 1994-2012 Lua.org, PUC-Rio

 > p = require 'pluto'
 > persisted = p.persist ({}, {f = function() print 'I am a persisted
function' end})
 > =persisted

 > f = p.unpersist ({}, persisted)
attempt to index a userdata value
stack traceback:
     [C]: in function 'unpersist'
     stdin:1: in main chunk
     [C]: ?
 >

What am I doing wrong?

Alexander Mashin