The recursion was invoked inside the continuation and I did add render-footnote to the continuation then so it should have recursed into the original definition.
Sam
Hi Sam,
Le Mon, 21 Jan 2013 02:43:44 +0000,
Sam Liddicott <address@hidden> a écrit :
> Interestingly I had to re-define render-footnote using quasi; adding
> it to the with-default-style closure and defining it like this caused
> a crash (I guess infinite recursion)
> <assign|render-footnote|<macro|nr|body|<with-default-style|<render-footnote|<arg|nr>|<arg|body>>>>>
> I tried deferring evaluation if the inner render-footnote so it would
> take the enclosed value by means of compound, and quote, but it
> always crashed.
I don't understand what do you expect from this code if not a
recursion trap. :)
It's like (define (f x y) (f x y)).
Anyway, we should avoid TeXmacs crash, e.g. using a max recursion depth
counter.
François
--
François Poulain <address@hidden>
Archive powered by MHonArc 2.6.19.