lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


I tried something and I got the below code, but I don't know if it is fast.

function Registry:getValue(key)
  local globals = globals
  local dostring = dostring
  local g = globals(self)
  local r = dostring("return " .. key)
  globals(g)
  return r
end

Regards,
Milano