From owner-sc22wg5@open-std.org  Tue Dec  9 19:28:51 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 B3ACDCA343D; Tue,  9 Dec 2008 19:28:51 +0100 (CET)
X-Original-To: sc22wg5@open-std.org
Delivered-To: sc22wg5@open-std.org
Received: from smtp.llnl.gov (nspiron-3.llnl.gov [128.115.41.83])
	by www2.open-std.org (Postfix) with ESMTP id B7089C178D6
	for <sc22wg5@open-std.org>; Tue,  9 Dec 2008 19:28:50 +0100 (CET)
X-Attachments: None
Received: from cyrus2.llnl.gov ([128.15.97.105])
  by smtp.llnl.gov with ESMTP; 09 Dec 2008 10:28:49 -0800
From: Aleksandar Donev <donev1@llnl.gov>
Organization: LLNL
To: WG5 <sc22wg5@open-std.org>
Subject: Re: (j3.2006) (SC22WG5.3787) N1761, TYPE(*), BIND(C) and arrays
Date: Tue, 9 Dec 2008 10:28:49 -0800
User-Agent: KMail/1.9.4
References: <20081127193527.EF00DC178D9@www2.open-std.org> <20081202130345.82E16C178E1@www2.open-std.org> <20081209122438.AE57DCA3439@www2.open-std.org>
In-Reply-To: <20081209122438.AE57DCA3439@www2.open-std.org>
MIME-Version: 1.0
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
Message-Id: <200812091028.49749.donev1@llnl.gov>
Sender: owner-sc22wg5@open-std.org
Precedence: bulk

On Tuesday 09 December 2008 04:24, N.M. Maclaren wrote:

> ! For each of the following calls, is the array passed using
> descriptors !=20
Yes, all of these are passed by descriptors since the dummy is=20
assumed-rank.

> or not, why, and where is that stated?
=46rom N1761:
"A BIND(C) interface may specify dummy arguments that are
assumed-type. If the dummy argument is a scalar, an explicit-shape
array, or an assumed-size array, the corresponding formal parameter in
the C prototype shall be a void pointer (void *).  If the dummy
argument has the ALLOCATABLE or POINTER attributes, or is
assumed-shape or assumed-rank, the actual argument is passed as the C
address of a Fortran descriptor describing the actual argument.
=2E..
A BIND(C) interface may specify dummy arguments that are
assumed-rank. If the dummy argument is assumed-rank, the actual
argument is passed as the C address of a Fortran descriptor describing
the actual argument."

Do I still need to go through the examples? Please do let me know since=20
I try to save time by not doing needless work.
Thanks,
Aleks
