lua-users home
lua-l archive

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


Oops, I forgot that I don't need to try to look up the global, since this
tag method only gets called when that global is nil. So this is all 
that's needed:

settagmethod(tag(nil), "getglobal",
  function (varname) 
    return rawgettable( rawgetglobal(enms), varname)
  end )

---
Steve Dekorte