Re: question concerning evaluate.



> That would be because it is an incorrect assumption. :) When a WHEN
> clause is satisfied, control passes to the next *executable* statement
> in the program. (It's an OR.) A second WHEN is a conditional
> statement, not an executable one.

As I read the standard, right idea, wrong terminology. If the criteria for
a given WHEN clause are met, execution continues with the first *imperative*
statement following the WHEN (one might even say *contained within*) the
WHEN clause, and from there to the statement following END-EVALUATE (or the
implicit end of the EVALUATE statement). Note that *an* imperative
statement may consist of a *sequence of* imperative statements.

Thus, WHEN is not a *statement* at all, it's a clause of the EVALUATE. It
isn't because it's a "conditional statement" that it's not executed, it's
that the rules for WHEN basically say when you're done executing the
imperative statements associated with a WHEN you're done executing the
EVALUATE.

-Chuck Stevens


.



Relevant Pages

  • Re: "error: invalid preprocessing directive #DEFINE"
    ... that arises from "executing" it doesn't contradict that). ... All preprocessing directives are then deleted. ... Since the standard doesn't define ... about non-directives. ...
    (comp.lang.c)
  • Re: backtick commands and stderr
    ... > When executing a system op using the backtick method, the standard ... you can ask it to redirect stderr to stdout: ...
    (comp.lang.ruby)
  • Re: New to programming question
    ... Each item in the sequence is assigned to the target_list variable in turn. ... When the items are exhausted, the "now do this last" instructions in the else statement, if present, are executed, and the loop terminates. ... A break statement executed in the first section terminates the WHOLE loop without executing the else clause. ... However, if the name is guessed correctly, then the break statement pulls us completely out of the loop without executing the else clause. ...
    (comp.lang.python)
  • Re: Question(s) about recursive I/O in f2003
    ... list items (the stuff in the parenthesis after the statement keyword). ... The Fortran 2003 standard is clear in this case. ... An input/output statement that is executed while another ... starts executing by calling the function IF and during the ...
    (comp.lang.fortran)
  • Re: Question(s) about recursive I/O in f2003
    ... list items (the stuff in the parenthesis after the statement keyword). ... The Fortran 2003 standard is clear in this case. ... An input/output statement that is executed while another ... starts executing by calling the function IF and during the ...
    (comp.lang.fortran)