Mon Jun 9 17:55:53 CEST 2008
This is not entirely trivial: the environment in which the code is
expanded needs to be modified so the load statements inside the code
know where to get the code. Currently, it's simply inlined so context
can't be tracked.
OK. with the control flow out of the way, it's probably easier to
override current-load than to try to re-implement that part..
Q: is it possible to use require in a loaded file? if yes, is then a
problem to replace the load handler also for requires?
hmm.. the parser atm is really confusing.. too much juggling with
return values and continuation thunks.. this needs to be solved
without a driver routine.. maybe a single dynamic variable to
accumulate code is better.. there is aleady one for toplevel defs..