Re: Tail recursion syntactic sugar faked with TAGBODY-based construct?



On Jan 31, 2:40 am, Gene <gene.ress...@xxxxxxxxx> wrote:
On Jan 30, 4:09 am, Kaz Kylheku <kkylh...@xxxxxxxxx> wrote:

Anyone have any interesting mutual tail recursion examples? I'd like
to try rewriting them using ARGTAGS.

How about implementing a finite state machine e.g. for an input
scanner?  There was a recent discussion in comp.programming about
using tail-recursive functions in C to this effect.

http://groups.google.com/group/comp.programming/browse_thread/thread/...

Standard practice here and elsewhere. You just use LABELS and let the
compiler do the optimizing (if it implements it).

Cheers
--
Marco
.



Relevant Pages