Stavros Macrakis wrote:
> Seems to me that this is a flaw in the context system -- it should not be necessary to go to such trouble to make recursive contexts work correctly.
Maxima has both newcontext and supcontext--I would think that using supcontext should allow recursive contexts to work without a great deal of fuss?
Also, the user documentation doesn't mention this, but I think newcontext and supcontext do not evaluate their arguments---likely you need something
like
block([ctx : gensym("ctx")],
ctx : apply('subcontext, [ctx]),
...);
--Barton