(j3.2006) (SC22WG5.5425) WG5 straw ballot on N2040

Bill Long longb
Mon Jan 19 09:02:05 EST 2015


On Jan 18, 2015, at 7:59 PM, Malcolm Cohen <malcolm at nag-j.co.jp> wrote:

> 
> (c) I do not agree with the syntax for specifying a team variable in an 
> image-selector, as we use double colons following type-specs and other related 
> attributes, which this is certainly not.  A single colon would be acceptable.


We did consider both single and double colon notation.  The problem with the single colon notation is that it visually looks like the notation for an array section. While we currently don?t allow co-sections, it is a fairly obvious extension in the future. Earlier coarray extensions had already allowed it.   Even though the compiler would have no problem figuring out the meaning in the single colon case , since the variable is a team variable, that is not obvious visually when reading the statement.   Arguably, someone could perversely name a team variable INTEGER and also produce an awkward looking designator with the double colon notation.  But that seemed the lesser of the two possible evils. 

Cheers,
Bill


Bill Long                                                                       longb at cray.com
Fortran Technical Suport  &                                  voice:  651-605-9024
Bioinformatics Software Development                     fax:  651-605-9142
Cray Inc./ Cray Plaza, Suite 210/ 380 Jackson St./ St. Paul, MN 55101





More information about the J3 mailing list