From owner-sc22wg5+sc22wg5-dom8=www.open-std.org@open-std.org  Mon Aug  5 14:42:17 2013
Return-Path: <owner-sc22wg5+sc22wg5-dom8=www.open-std.org@open-std.org>
X-Original-To: sc22wg5-dom8
Delivered-To: sc22wg5-dom8@www.open-std.org
Received: by www.open-std.org (Postfix, from userid 521)
	id 4C19E3571C9; Mon,  5 Aug 2013 14:42:17 +0200 (CEST)
Delivered-To: sc22wg5@open-std.org
Received: from exprod6og118.obsmtp.com (exprod6og118.obsmtp.com [64.18.1.233])
	by www.open-std.org (Postfix) with ESMTP id BBF2635700C
	for <sc22wg5@open-std.org>; Mon,  5 Aug 2013 14:41:57 +0200 (CEST)
Received: from CFWEX01.americas.cray.com ([136.162.34.11]) (using TLSv1) by exprod6ob118.postini.com ([64.18.5.12]) with SMTP
	ID DSNKUf+dldqxqZPHyDbGHKJGoz9pJZcTj8/0@postini.com; Mon, 05 Aug 2013 05:42:14 PDT
Received: from fortran.us.cray.com (172.31.19.200) by
 CFWEX01.americas.cray.com (172.30.88.25) with Microsoft SMTP Server id
 14.2.342.3; Mon, 5 Aug 2013 07:40:38 -0500
Message-ID: <51FF9EC0.9050305@cray.com>
Date: Mon, 5 Aug 2013 07:46:56 -0500
From: Bill Long <longb@cray.com>
Reply-To: <longb@cray.com>
Organization: Cray Inc.
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:17.0) Gecko/20130620 Thunderbird/17.0.7
MIME-Version: 1.0
To: <j3@mailman.j3-fortran.org>
Subject: Re: (j3.2006) (SC22WG5.5057) [ukfortran] WG5 vote on draft TS on
 further coarray features
References: <20130710091604.2E25F35700C@www.open-std.org> <20130801131842.02EE4357123@www.open-std.org> <20130805080607.3A6A23571A8@www.open-std.org>
In-Reply-To: <20130805080607.3A6A23571A8@www.open-std.org>
Content-Type: text/plain; charset="ISO-8859-1"; format=flowed
Content-Transfer-Encoding: 7bit
Sender: owner-sc22wg5@open-std.org
Precedence: bulk


> Nick Maclaren writes:
>> >Passim.  The specification is messy and restrictive, and should be
>> >changed.  For example, it is not possible to reduce INTENT(IN) examples.

The INTENT(IN) case seems too trivial to justify changing a spec that is 
increasingly in production use.  If you want

co_sum( <expr>, X)

just write

X = <expr>
co_sum(X)

instead.  The second form avoids the compiler having to create a temp 
for <expr>, which you would want to avoid anyway if X is an array.

Cheers,
Bill

-- 
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


