lua-users home
lua-l archive

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


>I'm really looking forward to 4.1!!

If you mean because of "require", then you don't have to wait, because the
implementatin simply uses the registry to keep track of which files have been
loaded.

You can do something similar in Lua by redefining "dofile":

local A={}
function dofile(x)
 if %A[x]==nil then %A[x]=1; return %dofile(x) end
end

--lhf