lua-users home
lua-l archive

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

>First of all the main program require(FileA) and FileA then
>require(FileB) and if FileB now require(FileA) again then ups we
>are falling into a loop. But why? Because FileA is already required with
>the first call from the main prog.

This seems correct to me: "require" is for loading libraries and your hierarchy
of libraries has a loop. For executing code, use "dofile".