groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Groff] pic problem


From: Larry Kollar
Subject: Re: [Groff] pic problem
Date: Tue, 13 Jul 2004 23:19:29 -0400

The only way I can account for all of A, B, C, D is that the logic
of the loop

  for n = a to b by c do {...}

is:

  [1] Set n = a.
  [2] If a > b, break; else execute {...}
  [3] increment a by c [default 1], and go to [2].

which would presuppose that a <= b to start with, and c > 0.
Not the logic one would expect!

Interesting... have I actually uncovered a bug?

Using Heinz's suggestion (box wid 1 ht 1 sprintf("%g", 32-n);)
worked, so for now I'll assume it's a case of "does it hurt when
you do that? then don't do that."

--
Larry Kollar     k  o  l  l  a  r  @  a  l  l  t  e  l  .  n  e  t
Unix Text Processing: "UTP Revival"
http://home.alltel.net/kollar/utp/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]