[Top][All Lists]

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

Re: Feature request

From: Robert Elz
Subject: Re: Feature request
Date: Mon, 09 Nov 2020 17:27:38 +0700

    Date:        Sun, 08 Nov 2020 20:37:24 -0500
    From:        worley@alum.mit.edu (Dale R. Worley)
    Message-ID:  <87ft5j2tuz.fsf@hobgoblin.ariadne.com>

  | What cannot be controlled is the exit value if the block is not executed
  | i.e. if the initial evaluation of the condition is false.  In that case,
  | the exit value is always zero.

That's what the standard says it has to be.   But since "if the initial
evaluation of the condition is false" can be tested before getting to the
while test, it is trivial to deal with this, and usually, deal with it
more elegantly than having some magic exit value from a while where the
body is never executed.

But like Lawrence, I'm not at all sure that is what Budi actually wants.


reply via email to

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