[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: require()
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Thu, 23 Jan 2003 16:48:50 -0200
>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".
--lhf