[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Limited dostring()?
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Thu, 10 Jan 2002 23:37:23 -0200
>Should I write a pseudo require() and use this until the 4.1 is ready to use?
Here is a version of require that works in 4.0:
do
local A={}
function require(x)
if %A[x]==nil then %A[x]=1; return %dofile(x) end
end
end
>What methods are you suggests for variables that only hold an flag?
"true" -> 1, "false" -> nil
--lhf