From owner-sc22wg5@open-std.org  Wed Jul 14 18:08:51 2010
Return-Path: <owner-sc22wg5@open-std.org>
X-Original-To: sc22wg5-dom8
Delivered-To: sc22wg5-dom8@www2.open-std.org
Received: by www2.open-std.org (Postfix, from userid 521)
	id E75C0C178E4; Wed, 14 Jul 2010 18:08:51 +0200 (CEST)
X-Original-To: sc22wg5@open-std.org
Delivered-To: sc22wg5@open-std.org
Received: from e9.ny.us.ibm.com (e9.ny.us.ibm.com [32.97.182.139])
	by www2.open-std.org (Postfix) with ESMTP id D9A50C178DF
	for <sc22wg5@open-std.org>; Wed, 14 Jul 2010 18:08:49 +0200 (CEST)
Received: from d01relay03.pok.ibm.com (d01relay03.pok.ibm.com [9.56.227.235])
	by e9.ny.us.ibm.com (8.14.4/8.13.1) with ESMTP id o6EFqifE018459
	for <sc22wg5@open-std.org>; Wed, 14 Jul 2010 11:52:44 -0400
Received: from d01av02.pok.ibm.com (d01av02.pok.ibm.com [9.56.224.216])
	by d01relay03.pok.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id o6EG8ilG107814
	for <sc22wg5@open-std.org>; Wed, 14 Jul 2010 12:08:44 -0400
Received: from d01av02.pok.ibm.com (loopback [127.0.0.1])
	by d01av02.pok.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id o6EG8eM3026229
	for <sc22wg5@open-std.org>; Wed, 14 Jul 2010 13:08:40 -0300
Received: from d25ml04.torolab.ibm.com (d25ml04.torolab.ibm.com [9.26.6.105])
	by d01av02.pok.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id o6EG8en8026220;
	Wed, 14 Jul 2010 13:08:40 -0300
In-Reply-To: <4C3DE016.80305@cray.com>
References: <20100714154320.CE3BBC178DF@www2.open-std.org> <4C3DE016.80305@cray.com>
To: longb@cray.com,
	fortran standards email list for J3 <j3@j3-fortran.org>
Cc: fortran standards email list for J3 <j3@j3-fortran.org>,
	j3-bounces@j3-fortran.org, WG5 <sc22wg5@open-std.org>
MIME-Version: 1.0
Subject: Re: (j3.2006) (SC22WG5.4295) Fw: a question about IS CONTIGUOUS
X-KeepSent: 8033F702:031C221B-85257760:0058976C;
 type=4; name=$KeepSent
X-Mailer: Lotus Notes Release 8.0.1 HF105 April 10, 2008
Message-ID: <OF8033F702.031C221B-ON85257760.0058976C-85257760.0058ACD8@ca.ibm.com>
From: Jim Xia <jimxia@ca.ibm.com>
Date: Wed, 14 Jul 2010 12:08:39 -0400
X-MIMETrack: Serialize by Router on D25ML04/25/M/IBM(Release 8.0.1|February 07, 2008) at
 07/14/2010 12:08:40,
	Serialize complete at 07/14/2010 12:08:40
Content-Type: multipart/alternative; boundary="=_alternative 0058ACD885257760_="
Sender: owner-sc22wg5@open-std.org
Precedence: bulk

This is a multipart message in MIME format.
--=_alternative 0058ACD885257760_=
Content-Type: text/plain; charset="US-ASCII"

j3-bounces@j3-fortran.org wrote on 07/14/2010 12:04:38 PM:

> [image removed] 
> 
> Re: (j3.2006) (SC22WG5.4295) Fw: a question about IS CONTIGUOUS
> 
> Bill Long 
> 
> to:
> 
> fortran standards email list for J3
> 
> 07/14/2010 12:04 PM
> 
> Sent by:
> 
> j3-bounces@j3-fortran.org
> 
> Cc:
> 
> WG5
> 
> Please respond to longb, fortran standards email list for J3
> 
> 10-007:[122:6] says "An array section is an array."   Seems clear enough 

> to not require an interp.
> 

Then, what would be the return values of these two function calls?

>     IS_CONTIGUOUS (array(1::2))
>     IS_CONTIGUOUS (array([1, 3, 5, 2]))


Jim Xia

XL Fortran Compiler Test
IBM Toronto Lab at 8200 Warden Ave, Markham, On, L6G 1C7
Phone (905) 413-3444  Tie-line 313-3444
email: jimxia@ca.ibm.com
D2/YF7/8200 /MKM

http://www.ibm.com/software/awdtools/fortran/xlfortran

> Cheers,
> Bill
> 
> 
> Jim Xia wrote:
> > 
> > Jim Xia
> > 
> > XL Fortran Compiler Test
> > IBM Toronto Lab at 8200 Warden Ave, Markham, On, L6G 1C7
> > Phone (905) 413-3444  Tie-line 313-3444
> > email: jimxia@ca.ibm.com
> > D2/YF7/8200 /MKM
> > 
> > http://www.ibm.com/software/awdtools/fortran/xlfortran
> > ----- Forwarded by Jim Xia/Toronto/IBM on 07/14/2010 11:34 AM -----
> > From:    Jim Xia/Toronto/IBM
> > To:    j3-bounces@j3-fortran.org
> > Date:    07/14/2010 11:16 AM
> > Subject:    a question about IS CONTIGUOUS
> > 
> > 
> > 
------------------------------------------------------------------------
> > 
> > 
> > I think the description on IS_CONTIGUOUS intrinsic has some problems. 
> >  The standard says
> > 
> > 
> > 
> > 
> > The question is: is array sections allowed to be tested by this 
> > intrinsic directly?
> > 
> > For example, what will the following two queries return:
> > 
> >     IS_CONTIGUOUS (array(1::2))
> >     IS_CONTIGUOUS (array([1, 3, 5, 2]))
> > 
> > Should this be an interp?
> > 
> > 
> > Jim Xia
> > 
> > XL Fortran Compiler Test
> > IBM Toronto Lab at 8200 Warden Ave, Markham, On, L6G 1C7
> > Phone (905) 413-3444  Tie-line 313-3444
> > email: jimxia@ca.ibm.com
> > D2/YF7/8200 /MKM
> > 
> > http://www.ibm.com/software/awdtools/fortran/xlfortran
> > 
> 
> -- 
> Bill Long                                           longb@cray.com
> Fortran Technical Support    &                 voice: 651-605-9024
> Bioinformatics Software Development            fax:   651-605-9142
> Cray Inc./Cray Plaza, Suite 210/380 Jackson St./St. Paul, MN 55101
> 
> 
> _______________________________________________
> J3 mailing list
> J3@j3-fortran.org
> http://j3-fortran.org/mailman/listinfo/j3

--=_alternative 0058ACD885257760_=
Content-Type: text/html; charset="US-ASCII"


<br><tt><font size=2>j3-bounces@j3-fortran.org wrote on 07/14/2010 12:04:38
PM:<br>
<br>
&gt; [image removed] </font></tt>
<br><tt><font size=2>&gt; <br>
&gt; Re: (j3.2006) (SC22WG5.4295) Fw: a question about IS CONTIGUOUS</font></tt>
<br><tt><font size=2>&gt; <br>
&gt; Bill Long </font></tt>
<br><tt><font size=2>&gt; <br>
&gt; to:</font></tt>
<br><tt><font size=2>&gt; <br>
&gt; fortran standards email list for J3</font></tt>
<br><tt><font size=2>&gt; <br>
&gt; 07/14/2010 12:04 PM</font></tt>
<br><tt><font size=2>&gt; <br>
&gt; Sent by:</font></tt>
<br><tt><font size=2>&gt; <br>
&gt; j3-bounces@j3-fortran.org</font></tt>
<br><tt><font size=2>&gt; <br>
&gt; Cc:</font></tt>
<br><tt><font size=2>&gt; <br>
&gt; WG5</font></tt>
<br><tt><font size=2>&gt; <br>
&gt; Please respond to longb, fortran standards email list for J3</font></tt>
<br><tt><font size=2>&gt; <br>
&gt; 10-007:[122:6] says &quot;An array section is an array.&quot; &nbsp;
Seems clear enough <br>
&gt; to not require an interp.<br>
&gt; <br>
</font></tt>
<br><tt><font size=2>Then, what would be the return values of these two
function calls?</font></tt>
<br>
<br><tt><font size=2>&gt; &nbsp; &nbsp; IS_CONTIGUOUS (array(1::2))<br>
&gt; &nbsp; &nbsp; IS_CONTIGUOUS (array([1, 3, 5, 2]))<br>
<br>
</font></tt>
<br><font size=2 face="sans-serif">Jim Xia<br>
<br>
XL Fortran Compiler Test<br>
IBM Toronto Lab at 8200 Warden Ave, Markham, On, L6G 1C7<br>
Phone (905) 413-3444 &nbsp;Tie-line 313-3444<br>
email: jimxia@ca.ibm.com<br>
D2/YF7/8200 /MKM<br>
<br>
</font><a href=http://www.ibm.com/software/awdtools/fortran/xlfortran><font size=2 face="sans-serif">http://www.ibm.com/software/awdtools/fortran/xlfortran</font></a>
<br>
<br><tt><font size=2>&gt; Cheers,<br>
&gt; Bill<br>
&gt; <br>
&gt; <br>
&gt; Jim Xia wrote:<br>
&gt; &gt; <br>
&gt; &gt; Jim Xia<br>
&gt; &gt; <br>
&gt; &gt; XL Fortran Compiler Test<br>
&gt; &gt; IBM Toronto Lab at 8200 Warden Ave, Markham, On, L6G 1C7<br>
&gt; &gt; Phone (905) 413-3444 &nbsp;Tie-line 313-3444<br>
&gt; &gt; email: jimxia@ca.ibm.com<br>
&gt; &gt; D2/YF7/8200 /MKM<br>
&gt; &gt; <br>
&gt; &gt; </font></tt><a href=http://www.ibm.com/software/awdtools/fortran/xlfortran><tt><font size=2>http://www.ibm.com/software/awdtools/fortran/xlfortran</font></tt></a><tt><font size=2><br>
&gt; &gt; ----- Forwarded by Jim Xia/Toronto/IBM on 07/14/2010 11:34 AM
-----<br>
&gt; &gt; From: &nbsp; &nbsp;Jim Xia/Toronto/IBM<br>
&gt; &gt; To: &nbsp; &nbsp;j3-bounces@j3-fortran.org<br>
&gt; &gt; Date: &nbsp; &nbsp;07/14/2010 11:16 AM<br>
&gt; &gt; Subject: &nbsp; &nbsp;a question about IS CONTIGUOUS<br>
&gt; &gt; <br>
&gt; &gt; <br>
&gt; &gt; ------------------------------------------------------------------------<br>
&gt; &gt; <br>
&gt; &gt; <br>
&gt; &gt; I think the description on IS_CONTIGUOUS intrinsic has some problems.
<br>
&gt; &gt; &nbsp;The standard says<br>
&gt; &gt; <br>
&gt; &gt; <br>
&gt; &gt; <br>
&gt; &gt; <br>
&gt; &gt; The question is: is array sections allowed to be tested by this
<br>
&gt; &gt; intrinsic directly?<br>
&gt; &gt; <br>
&gt; &gt; For example, what will the following two queries return:<br>
&gt; &gt; <br>
&gt; &gt; &nbsp; &nbsp; IS_CONTIGUOUS (array(1::2))<br>
&gt; &gt; &nbsp; &nbsp; IS_CONTIGUOUS (array([1, 3, 5, 2]))<br>
&gt; &gt; <br>
&gt; &gt; Should this be an interp?<br>
&gt; &gt; <br>
&gt; &gt; <br>
&gt; &gt; Jim Xia<br>
&gt; &gt; <br>
&gt; &gt; XL Fortran Compiler Test<br>
&gt; &gt; IBM Toronto Lab at 8200 Warden Ave, Markham, On, L6G 1C7<br>
&gt; &gt; Phone (905) 413-3444 &nbsp;Tie-line 313-3444<br>
&gt; &gt; email: jimxia@ca.ibm.com<br>
&gt; &gt; D2/YF7/8200 /MKM<br>
&gt; &gt; <br>
&gt; &gt; </font></tt><a href=http://www.ibm.com/software/awdtools/fortran/xlfortran><tt><font size=2>http://www.ibm.com/software/awdtools/fortran/xlfortran</font></tt></a><tt><font size=2><br>
&gt; &gt; <br>
&gt; <br>
&gt; -- <br>
&gt; Bill Long &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; longb@cray.com<br>
&gt; Fortran Technical Support &nbsp; &nbsp;&amp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; voice: 651-605-9024<br>
&gt; Bioinformatics Software Development &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp;fax: &nbsp; 651-605-9142<br>
&gt; Cray Inc./Cray Plaza, Suite 210/380 Jackson St./St. Paul, MN 55101<br>
&gt; <br>
&gt; <br>
&gt; _______________________________________________<br>
&gt; J3 mailing list<br>
&gt; J3@j3-fortran.org<br>
&gt; </font></tt><a href="http://j3-fortran.org/mailman/listinfo/j3"><tt><font size=2>http://j3-fortran.org/mailman/listinfo/j3</font></tt></a><tt><font size=2><br>
</font></tt>
--=_alternative 0058ACD885257760_=--
