Skip to content

Lua 5.4 lua_setfenv & lua_getfenv deprecated #18

@duerrpADA

Description

@duerrpADA

Hi,

I tried to port lqt5 to the current lua 5.4.4 release.
Till now i was already successfully using it with a custom Lua 5.1.4 Interpreter.

I came around the problem that 'lua_setfenv' & 'lua_getfenv' (which are used in 'lqt_common.cpp") are removed from lua since version 5.2.

I tried replacing them with 'lua_setuservalue' & 'lua_getuservalue' which compiled fine but i got some strange errors during runtime:
"../common/embed/class.lua:224: attempt to index a number value (local 'k')"

At the moment i dont have another idea how to resolve this issue.

Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions