home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.fortran
- Path: sparky!uunet!cs.utexas.edu!convex!constellation!iapa!ctrbdo
- From: ctrbdo@iapa.uucp%mailhost.ecn.uoknor.edu (bryan d oakley)
- Subject: ENTRY in main
- Message-ID: <By6qpv.pu@iapa.uucp%mailhost.ecn.uoknor.edu>
- Organization: FAA / Mike Monroney Aeronautical Center
- Date: Mon, 23 Nov 1992 20:10:41 GMT
- Lines: 30
-
- Robert Corbett writes:
-
- > In any case, a main program cannot contain an ENTRY statement.
- > Section 14.2 of X3.9-1978 states
- >
- > A main program may contain any other statement except a
- > BLOCK DATA, FUNCTION, SUBROUTINE, ENTRY, or RETURN
- > statement.
-
- right you are! Further, Section 15.7 (ENTRY statement) states
-
- ... [an ENTRY statement] may appear anywhere within a function
- subprogram after the FUNCTION statement or within a subroutine
- subprogram after the SUBROUTINE statement, ...
-
- ... but says nothing about allowing one in a main program.
-
- I should'a looked in the standard in the first place. I looked in my
- favorite hardware vendor's FORTRAN reference and didn't see the
- exclusion. Big suprise ... :-) Sure enough, the Sun compiler
- complains about a 'misplaced entry statement'. Too lazy to see what
- my DG compiler does. ... Just goes to show -- you can always learn
- something new about FORTRAN.
-
-
- --
- ----------------------------------------------------------------------
- Instrument Approach Procedures Automation DOT/FAA/AMI-230
- ----------------------------------------------------------------------
- Bryan D. Oakley ctrbdo%iapa@mailhost.ecn.uoknor.edu
-