From owner-sc22wg5@open-std.org  Mon Dec  8 21:22:33 2008
Return-Path: <owner-sc22wg5@open-std.org>
X-Original-To: sc22wg5-dom7
Delivered-To: sc22wg5-dom7@www2.open-std.org
Received: by www2.open-std.org (Postfix, from userid 521)
	id 49D6AC178DA; Mon,  8 Dec 2008 21:22:33 +0100 (CET)
X-Original-To: sc22wg5@open-std.org
Delivered-To: sc22wg5@open-std.org
Received: from mail.jpl.nasa.gov (sentrion2.jpl.nasa.gov [128.149.139.106])
	by www2.open-std.org (Postfix) with ESMTP id 624ADC178D6
	for <sc22wg5@open-std.org>; Mon,  8 Dec 2008 21:22:31 +0100 (CET)
Received: from mprox2.jpl.nasa.gov (mprox2.jpl.nasa.gov [137.78.160.141])
	by mail.jpl.nasa.gov (Switch-3.3.2mp/Switch-3.3.2mp) with ESMTP id mB8KMRSc004339;
	Mon, 8 Dec 2008 20:22:27 GMT
Received: from [137.79.7.57] (math.jpl.nasa.gov [137.79.7.57])
	(authenticated bits=0)
	by mprox2.jpl.nasa.gov (Switch-3.2.6/Switch-3.2.6) with ESMTP id mB8KMPlj010775
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT);
	Mon, 8 Dec 2008 12:22:25 -0800
Subject: Re: (j3.2006) (SC22WG5.3757) Ballot on the technical content of
	the TR
From: Van Snyder <Van.Snyder@jpl.nasa.gov>
Reply-To: Van.Snyder@jpl.nasa.gov
To: fortran standards email list for J3 <j3@j3-fortran.org>
Cc: WG5 <sc22wg5@open-std.org>
In-Reply-To: <20081208154207.B50ABC178E0@www2.open-std.org>
References: <20081127193527.EF00DC178D9@www2.open-std.org>
	 <20081208024650.76234C4596C@www2.open-std.org>
	 <20081208154207.B50ABC178E0@www2.open-std.org>
Content-Type: text/plain
Organization: Yes
Date: Mon, 08 Dec 2008 12:22:24 -0800
Message-Id: <1228767745.15904.825.camel@math.jpl.nasa.gov>
Mime-Version: 1.0
X-Mailer: Evolution 2.12.3 (2.12.3-8.el5_2.2) 
Content-Transfer-Encoding: 7bit
X-Source-IP: math.jpl.nasa.gov [137.79.7.57]
X-Source-Sender: Van.Snyder@jpl.nasa.gov
X-AUTH: Authorized
Sender: owner-sc22wg5@open-std.org
Precedence: bulk


On Mon, 2008-12-08 at 07:26 -0800, Craig Rasmussen wrote:
> 
> On Dec 7, 2008, at 7:46 PM, Jim Xia wrote:
> 
> > 2.) Fortran descriptors 
> > Although Fortran descriptors are used when passing assumed-shape
> > arrays, pointer arrays and allocatable arrays by many vendors, they
> > are however not universally used by all vendors.  Based on a survey
> > earlier this year (by Craig Rasmussen at J3 m183), some vendors
> > haven't adopted descriptors for assumed shape arrays, pointer arrays
> > or allocatable arrays.  The requirement in the C-interop TR may pose
> > implementation difficulties for those vendors.  Furthermore allowing
> > updates on Fortran descriptors from C programs will likely cause
> > safety issues and also be problematic in consistency check by some
> > vendors.  This becomes a sure way to introduce bugs difficult to
> > diagnose. 
> 
> I'm not sure what I said about descriptors at J3 m183 but I certainly
> didn't intend to give the impression that some vendors don't implement
> Fortran descriptors.  In fact, EVERY vendor I have been able to test
> does.  Some vendors don't include the rank as part of the descriptor,
> though most do.  Perhaps this is what Jim is referring to.

In any case, the TR only affects procedures with BIND(C).  Vendors can
choose to process these differently if their usual argument-passing
conventions (that is, for non-BIND(C) procedures) are incompatible with
what the TR requires.

-- 
Van Snyder                    |  What fraction of Americans believe 
Van.Snyder@jpl.nasa.gov       |  Wrestling is real and NASA is fake?
Any alleged opinions are my own and have not been approved or
disapproved by JPL, CalTech, NASA, the President, or anybody else.

