From owner-sc22wg5@open-std.org  Wed Mar 26 15:20:57 2008
Return-Path: <owner-sc22wg5@open-std.org>
X-Original-To: sc22wg5-dom6
Delivered-To: sc22wg5-dom6@open-std.org
Received: by open-std.org (Postfix, from userid 521)
	id D7680D84A5; Wed, 26 Mar 2008 15:20:57 +0100 (CET)
X-Original-To: sc22wg5@open-std.org
Delivered-To: sc22wg5@open-std.org
Received: from e4.ny.us.ibm.com (e4.ny.us.ibm.com [32.97.182.144])
	by open-std.org (Postfix) with ESMTP id DEFC03850A
	for <sc22wg5@open-std.org>; Wed, 26 Mar 2008 15:20:35 +0100 (CET)
Received: from d01relay02.pok.ibm.com (d01relay02.pok.ibm.com [9.56.227.234])
	by e4.ny.us.ibm.com (8.13.8/8.13.8) with ESMTP id m2QEKRHr002234
	for <sc22wg5@open-std.org>; Wed, 26 Mar 2008 10:20:27 -0400
Received: from d01av01.pok.ibm.com (d01av01.pok.ibm.com [9.56.224.215])
	by d01relay02.pok.ibm.com (8.13.8/8.13.8/NCO v8.7) with ESMTP id m2QEKRSZ243266
	for <sc22wg5@open-std.org>; Wed, 26 Mar 2008 10:20:27 -0400
Received: from d01av01.pok.ibm.com (loopback [127.0.0.1])
	by d01av01.pok.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id m2QEKQ40015544
	for <sc22wg5@open-std.org>; Wed, 26 Mar 2008 10:20:27 -0400
Received: from d25ml04.torolab.ibm.com (d25ml04.torolab.ibm.com [9.26.6.105])
	by d01av01.pok.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id m2QEKQde015526;
	Wed, 26 Mar 2008 10:20:26 -0400
In-Reply-To: <20080326140649.3B700D6E31@open-std.org>
To: j.k.reid@rl.ac.uk, fortran standards email list for J3 <j3@j3-fortran.org>
Cc: j3-bounces@j3-fortran.org, WG5 <sc22wg5@open-std.org>
MIME-Version: 1.0
Subject: Re: (j3.2006) (SC22WG5.3558) [ukfortran] Letter ballot 5 on F2003
 interpretations
X-Mailer: Lotus Notes Release 7.0 HF144 February 01, 2006
Message-ID: <OF2D871445.29144B40-ON85257418.004E5D7A-85257418.004EC658@ca.ibm.com>
From: Jim Xia <jimxia@ca.ibm.com>
Date: Wed, 26 Mar 2008 10:20:23 -0400
X-MIMETrack: Serialize by Router on D25ML04/25/M/IBM(Release 7.0.2HF446 | March 16, 2007) at
 03/26/2008 10:20:25,
	Serialize complete at 03/26/2008 10:20:25
Content-Type: multipart/alternative; boundary="=_alternative 004EC65785257418_="
Sender: owner-sc22wg5@open-std.org
Precedence: bulk

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

Then what about another quote from standard for 10.6.1.2.1. F editing: 
"When w is zero, the processor selects the field width." [228:10].  I 
think this sentence overrides what Malcolm just quoted since this sentence 
particularly describe the F editing, while the other is general 
description for I, B, O, Z and F editing.

Cheers

Jim Xia

RL 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



John Reid <j.k.reid@rl.ac.uk> 
Sent by: j3-bounces@j3-fortran.org
03/26/2008 10:06 AM
Please respond to
j.k.reid@rl.ac.uk; Please respond to
fortran standards email list for J3 <j3@j3-fortran.org>


To
WG5 <sc22wg5@open-std.org>
cc

Subject
(j3.2006) (SC22WG5.3558) [ukfortran] Letter ballot 5 on F2003 
interpretations







------- Forwarded message -------

On Wed, 26 Mar 2008 03:29:53 +0900, Jim Xia <jimxia@ca.ibm.com> wrote:
> NO vote on F03/0100
> The second edit says that if <w> is zero, then the output field for NaN
> values is 'NaN'.  This seems to be too restrictive.  Processors should 
be
> given options for additional information in the output, e.g. a processor
> can
> provide additional information to specify whether a NaN is quiet NaN or
> signaling NaN.

Malcolm says: This argument is without merit.

w==0 is "minimal field width", and explicitly prohibits inclusion of
optional information (such as optional plus signs and leading zeroes).

If w==3 produces "NaN" and not "***", then w==0 producing anything
longer than 3 is, by definition, NOT minimal.

I quote from the standard

   "On output, with ... F editing, the specified value of the field
    width <w> may be zero.  In such case, the processor selects
    the smallest positive actual field width that does not result in
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    a field filled with asterisks."
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Jim's suggestion is contradicted both by the letter and the
spirit of the minimal width editing feature in the standard.

Cheers,
-- 
................Malcolm Cohen (malcolm@nag-j.co.jp)

_______________________________________________
J3 mailing list
J3@j3-fortran.org
http://j3-fortran.org/mailman/listinfo/j3


--=_alternative 004EC65785257418_=
Content-Type: text/html; charset="US-ASCII"


<br><font size=2 face="sans-serif">Then what about another quote from standard
for 10.6.1.2.1. F editing: &quot;When w is zero, the processor selects
the field width.&quot; [228:10]. &nbsp;I think this sentence overrides
what Malcolm just quoted since this sentence particularly describe the
F editing, while the other is general description for I, B, O, Z and F
editing.</font>
<br>
<br><font size=2 face="sans-serif">Cheers</font>
<br>
<br><font size=2 face="sans-serif">Jim Xia<br>
<br>
RL 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</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>John Reid &lt;j.k.reid@rl.ac.uk&gt;</b>
</font>
<br><font size=1 face="sans-serif">Sent by: j3-bounces@j3-fortran.org</font>
<p><font size=1 face="sans-serif">03/26/2008 10:06 AM</font>
<table border>
<tr valign=top>
<td bgcolor=white>
<div align=center><font size=1 face="sans-serif">Please respond to<br>
j.k.reid@rl.ac.uk; Please respond to<br>
fortran standards email list for J3 &lt;j3@j3-fortran.org&gt;</font></div></table>
<br>
<td width=59%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td><font size=1 face="sans-serif">WG5 &lt;sc22wg5@open-std.org&gt;</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td><font size=1 face="sans-serif">(j3.2006) (SC22WG5.3558) [ukfortran]
Letter ballot 5 on F2003 interpretations</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><tt><font size=2><br>
------- Forwarded message -------<br>
<br>
On Wed, 26 Mar 2008 03:29:53 +0900, Jim Xia &lt;jimxia@ca.ibm.com&gt; wrote:<br>
&gt; NO vote on F03/0100<br>
&gt; The second edit says that if &lt;w&gt; is zero, then the output field
for NaN<br>
&gt; values is 'NaN'. &nbsp;This seems to be too restrictive. &nbsp;Processors
should be<br>
&gt; given options for additional information in the output, e.g. a processor<br>
&gt; can<br>
&gt; provide additional information to specify whether a NaN is quiet NaN
or<br>
&gt; signaling NaN.<br>
<br>
Malcolm says: This argument is without merit.<br>
<br>
w==0 is &quot;minimal field width&quot;, and explicitly prohibits inclusion
of<br>
optional information (such as optional plus signs and leading zeroes).<br>
<br>
If w==3 produces &quot;NaN&quot; and not &quot;***&quot;, then w==0 producing
anything<br>
longer than 3 is, by definition, NOT minimal.<br>
<br>
I quote from the standard<br>
<br>
 &nbsp; &quot;On output, with ... F editing, the specified value of the
field<br>
 &nbsp; &nbsp;width &lt;w&gt; may be zero. &nbsp;In such case, the processor
selects<br>
 &nbsp; &nbsp;the smallest positive actual field width that does not result
in<br>
 &nbsp; &nbsp; &nbsp; &nbsp;^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br>
 &nbsp; &nbsp;a field filled with asterisks.&quot;<br>
 &nbsp; &nbsp;^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br>
<br>
Jim's suggestion is contradicted both by the letter and the<br>
spirit of the minimal width editing feature in the standard.<br>
<br>
Cheers,<br>
-- <br>
................Malcolm Cohen (malcolm@nag-j.co.jp)<br>
<br>
_______________________________________________<br>
J3 mailing list<br>
J3@j3-fortran.org<br>
http://j3-fortran.org/mailman/listinfo/j3<br>
</font></tt>
<br>
--=_alternative 004EC65785257418_=--
