lua-users home
lua-l archive

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


>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