[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Recursively getting a list of all files executed using dofile
- From: steve donovan <steve.j.donovan@...>
- Date: Sat, 14 May 2011 17:24:50 +0200
On Sat, May 14, 2011 at 5:10 PM, Benoit Germain <bnt.germain@gmail.com> wrote:
> Since 'dofile' is a global identifier, any code that references it
> should call yours instead.
Yes, the good old monkey-patching trick. But I get the impression that
'do-node' is under your direct control. So it is a classic problem of
finding all the dependencies that a particular node depends on, and
squishing these together. For instance, if the nodes were all little
files, then one could build a file which is a Lua table, where the
keys are the UIDs and the values are the contents of the files, and so
forth.
What is your granularity of re-use? A single function exported per node?
steve d.