From maine@altair.dfrc.nasa.gov  Fri Nov 13 05:52:04 1998
Received: from mailhub.dfrc.nasa.gov (mailhub.dfrc.nasa.gov [130.134.81.12])
	by dkuug.dk (8.8.7/8.8.7) with ESMTP id FAA07750
	for <sc22wg5@dkuug.dk>; Fri, 13 Nov 1998 05:52:03 +0100 (CET)
	(envelope-from maine@altair.dfrc.nasa.gov)
Received: from mail.dfrc.nasa.gov by mailhub.dfrc.nasa.gov with ESMTP; Thu, 12 Nov 1998 20:53:51 -0800
Received: from altair.dfrc.nasa.gov ([130.134.48.90]) by mail.dfrc.nasa.gov
          (Post.Office MTA v3.1.2 release (PO203-101c)
          ID# 103-49741U1500L100S0) with ESMTP id AAA19222;
          Thu, 12 Nov 1998 20:51:25 -0800
Received: (from maine@localhost)
	by altair.dfrc.nasa.gov (8.8.8/8.8.8) id UAA24696;
	Thu, 12 Nov 1998 20:51:24 -0800 (PST)
Date: Thu, 12 Nov 1998 20:51:24 -0800 (PST)
Message-Id: <199811130451.UAA24696@altair.dfrc.nasa.gov>
From: Richard Maine <maine@altair.dfrc.nasa.gov>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
To: E.W.Kruyt@Physiology.Medfac.LeidenUniv.nl
Cc: sc22wg5@dkuug.dk
Subject: (SC22WG5.1550) EXTERNAL, INTRINSIC
In-Reply-To: <199811110914.KAA26934@dkuug.dk>
References: <199811110914.KAA26934@dkuug.dk>
X-Mailer: VM 6.34 under 19.16 "Lille" XEmacs Lucid

Erik W. Kruyt writes:
 > In the Fortran 95 Draft DIS 1539-1, section 5.1.2.10 and 5.1.2.11 the
 > EXTERNAL and INTRINSIC attributes specify external, dummy and intrinsic
 > functions.
 > 
 > Is this correct? Shouldn't this be external and intrinsic procedures?
 > How can you specify subroutines with the same name as intrinsic subroutines
 > to be non-intrinsic to avoid name clashes otherwise?

Yes, this is correct.  Sections 5.1.2.10 and 5.1.2.11 are about
attributes that may appear in type declarations.  Type declarations
cannot be used for subroutines because subroutins do not have a
type.

For subroutines, you must use the EXTERNAL or INTRINSIC statements
described in 12.3.2.2 and 12.3.2.3.  Those apply to both subroutines
and functions.

Yes, it is a bit anomalous that those statements don't appear in
section 5 with the other statements used to declate attributes.
But then if they appeared in section 5, it would be anomalous
that they weren't in section 12 with the other material about
procedures.

-- 
Richard Maine
maine@altair.dfrc.nasa.gov

