ELSEWHERE... why not ELSE WHERE?

From: Paul Van Delst (paul.vandelst_at_noaa.gov)
Date: 11/29/04


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,

   http://tinyurl.com/3luxw

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


Relevant Pages

  • Re: On the topic of religion: Church of Registry vs. The INIonists...
    ... "Tim Baur" wrote in message ... > One habit I still carry from Fortran is never starting text before the 6th ... > character position. ...
    (microsoft.public.vb.general.discussion)
  • Re: Error in decimal places?
    ... It might be prudent to actually learn the rules ... I use Fortran like English, more by habit than rule, and keep things simple by using only double precision and appending D0 to all floating point numbers. ...
    (comp.lang.fortran)