From meissner@lynx.cs.usfca.edu Fri Oct 23 05:12:42 1992
Received: from lynx.cs.usfca.edu by dkuug.dk with SMTP id AA25155
  (5.65c8/IDA-1.4.4j for <sc22wg5@dkuug.dk>); Fri, 23 Oct 1992 20:15:31 +0100
Received: by lynx.cs.usfca.edu (AIX 3.2/UCB 5.64/4.03)
          id AA28989; Fri, 23 Oct 1992 12:12:42 -0700
Date: Fri, 23 Oct 1992 12:12:42 -0700
From: meissner@lynx.cs.usfca.edu (Loren P. Meissner)
Message-Id: <9210231912.AA28989@lynx.cs.usfca.edu>
To: sc22wg5@dkuug.dk
Subject: Varying Strings
Cc: meissner@lynx.cs.usfca.edu
X-Charset: ASCII
X-Char-Esc: 29


 I have received the following note addressed to Fortran Forum.
It will appear in the next issue (Dec 92).
21 July 1992
K. Brokate
Ruebezahlweg 20
D-725 Leonberg
Dear Author or Editor:
May I send two remarks on "Varying Length Strings":
1.	Topic 2.7.2 for "Replace" with Target and "Every"
Definition is needed for searching continuation (within copy of
String) after a replacement: does the search include the
replaced part within the copy?  How then stop if infinite
replacement occurs?
2.	Topics 2.7.1 and 2.7.2:  If Start is greater than length,
the meaning of append should be clarified: either additional
blanks are inserted as needed to guarantee that Start coincides
with the resulting start position number of the inserted copy of
the substring -- or no such blanks are inserted in any case.
I am not competent to decide which way in 1. and in 2. is
preferable.
In addition, for more doubtfreeness, I might suggest, that in
the explanations (and may be in the names) the terms "position"
and "position number" should be made visible: "startpos",
"endpos", "position number"; also "last" supplemented by "right"
if "rightmost" is not advisable).
3.	Finally I think of a device to limit the resulting length
(during execution) as a warning feature like overflow in
floating/fixed pt arithmetic.
4.	In addition, I feel uneasy with names index, scan, verify.
Perhaps: find string, find char, checkchar ?  The length of the
name (I think) is not an important issue for these procedures.


------------------END-------------------
Loren Meissner.
