[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: pluto
- From: "Александр Машин" <traditio.ru@...>
- Date: Sun, 3 Jan 2021 15:55:57 +0700
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