[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Mutual requires
- From: Geoff Leyland <geoff_leyland@...>
- Date: Fri, 21 Dec 2012 08:27:31 +1300
On 21/12/2012, at 2:43 AM, Owen Shepherd <owen.shepherd@e43.eu> wrote:
> Why not just set packages.loaded[name] at the top of each of the module files?
That's not a bad idea: it's no more fiddly than the alternative that Steve, Finn and I proposed, and it means you don't have to check for the presence of "add" every time __add is called.
I have to move the 'require"add"' to below expression's new method - since new is called in add's main chunk.
Thanks!