[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Refactor a block of Lua code to a function
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Mon, 1 Jul 2019 08:39:55 -0300
> The simplest starting point, implementable with stock tools, that comes to my (5.1) mind is putting that chunk of code into a separate file and running a global reference detector on it (luac -p|grep [GS]ETGLOBAL). Now, Lua 5.2+ has no such ops...
For a tool, see http://lua-users.org/lists/lua-l/2012-12/msg00397.html
and the thread starting at