lua-users home
lua-l archive

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


Hey Paul,

You could use the string library. ie, the c equivelant of something like this (untested):

function resolvedots(path)
 local res = _G
 for w in string.gmatch(path..".", "(.-)%.") do
   res = res[w]
 end
 return res
end

- Alex