Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!jarthur!euler.claremont.edu!dhosek From: dhosek@euler.claremont.edu (Don Hosek) Newsgroups: comp.text.tex Subject: FLow-of-control in TeX (was Re: Why use TeX if ...) Message-ID: <1991May14.093840.1@euler.claremont.edu> Date: 14 May 91 16:38:40 GMT References: <1991May10.211802.4344@csrd.uiuc.edu> <1991May11.013248.16286@nntp-server.caltech.edu> <1991May13.214453.17318@csrd.uiuc.edu> <1991May14.121233.11823@ifi.uio.no> Sender: news@jarthur.Claremont.EDU Organization: Harvey Mudd College Lines: 21 In article <1991May14.121233.11823@ifi.uio.no>, janl@ifi.uio.no (Nicolai Langfeldt) writes: > In article <1991May13.214453.17318@csrd.uiuc.edu> eijkhout@s41.csrd.uiuc.edu (Victor Eijkhout) writes: > .... >>input is the only form of iteration imaginable. Hence no loop >>constructs. Large parts of the design of TeX follow immediately > No loop constructs? I seem to remember that there is both \loop and > \for available. I've even used one of them once! \loop is a rather frightening tail-recursive macro which is highly fragile. Nested loops are difficult at best and extreme care must be taken when using different tail-recursive macros together as well. -dh -- Don Hosek dhosek@ymir.claremont.edu Quixote Digital Typography 714-625-0147