ELSEWHERE... why not ELSE WHERE?
From: Paul Van Delst (paul.vandelst_at_noaa.gov)
Date: 11/29/04
- Next message: Richard E Maine: "Re: ELSEWHERE... why not ELSE WHERE?"
- Previous message: Adrian: "Re: Passing address of a C++ function to Fortran - syntax??"
- Next in thread: Richard E Maine: "Re: ELSEWHERE... why not ELSE WHERE?"
- Reply: Richard E Maine: "Re: ELSEWHERE... why not ELSE WHERE?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 29 Nov 2004 14:02:19 -0500
Hello,
I'm in the habit of putting spaces between my ENDs and ELSEs, e.g.
END DO
END FUNCTION
END TYPE
END WHERE
and
ELSE IF
ELSE WHERE
etc.
I don't use the WHERE construct too much (some compilers I used in the past had, uh,
issues with it, e.g.
Signal: Bus error in Codegen Driver phase.
Error: Signal Bus error in phase Codegen Driver -- processing aborted
but I digress....)
I now discover that the portable form is
ELSEWHERE
not
ELSE WHERE
I googled clf about this and got the thread asking the exact same question,
but I found the responses a bit lacking. Although the English spelling of the *word* is
"elsewhere", I don't really understand why that would translate into the spelling of the
Fortran *statement* ELSEWHERE - it seems counter-intuitive considering the other ELSE used
in Fortran, ELSE IF. And to say nothing about the END statements for other constructs (IF,
SELECT, and WHERE itself). All my f90/95 texts are silent on the reasoning.
cheers,
paulv
-- Paul van Delst CIMSS @ NOAA/NCEP/EMC
- Next message: Richard E Maine: "Re: ELSEWHERE... why not ELSE WHERE?"
- Previous message: Adrian: "Re: Passing address of a C++ function to Fortran - syntax??"
- Next in thread: Richard E Maine: "Re: ELSEWHERE... why not ELSE WHERE?"
- Reply: Richard E Maine: "Re: ELSEWHERE... why not ELSE WHERE?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|