bug-groff
[Top][All Lists]
Advanced

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

[bug #59973] [PATCH] implement .soquiet and .msoquiet requests


From: Dave
Subject: [bug #59973] [PATCH] implement .soquiet and .msoquiet requests
Date: Fri, 5 Mar 2021 01:15:49 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux i686; rv:45.0) Gecko/20100101 Firefox/45.0

Follow-up Comment #3, bug #59973 (project groff):

Your "while" (non)loop expressed in pseudocode is:

      while (1) {
       if (A)
         if (B)
           break;
       error(...);
       break;
      }

Neither "if" having an "else," this should be equivalent to:

      while (1) {
       if (A && B)
         break;
       error(...);
       break;
      }

This further seems to be equivalent to the lower-level pseudocode:

       if (A && B)
         goto NEXT;
       error(...)
       goto NEXT;
      NEXT:

which basically reduces to:

      if !(A && B)
        error(...)

I confess I'm no C++ coder, so I could be overlooking any number of
language-specific gotchas.  And I don't know what you mean by "complicating
the boolean conditional afterward," the thing you were trying to avoid.  But
naively tracing the code path, I don't understand the need for the "while" at
all.

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?59973>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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