hyuri: (Default)
2013-05-14 01:35 am
Entry tags:

(no subject)

luac -l -l file.lua | awk "/_ENV/ { print $9 }" | sort -u | sed s/\"//g

only problem is (Busybox?) sed breaks pipes and redirection.
hyuri: (Default)
2010-12-30 08:31 pm
Entry tags:

(no subject)

if boolean_value then
    some_function(false)
else
    some_function(true)
end

or
some_function(not boolean_value)

hm.
hyuri: (Default)
2010-12-02 04:20 pm
Entry tags:

notes

in the context of WoW, at least:

table.element is faster than table["element"]
local references to individual elements is faster than localizing a global table, that is:
local ref = _G.table.element
-- use ref

is faster than
local table = _G.table
-- use table.element