hyuri: (Default)
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)
if boolean_value then
    some_function(false)
else
    some_function(true)
end

or
some_function(not boolean_value)

hm.

notes

Dec. 2nd, 2010 04:20 pm
hyuri: (Default)
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

Profile

hyuri: (Default)
hyuri

November 2014

S M T W T F S
      1
2345678
9101112131415
161718192021 22
23242526272829
30      

Syndicate

RSS Atom

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Sep. 26th, 2017 09:53 pm
Powered by Dreamwidth Studios