lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


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