caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* string function documentation
@ 1999-09-15 11:10 Steve Gardner
  0 siblings, 0 replies; only message in thread
From: Steve Gardner @ 1999-09-15 11:10 UTC (permalink / raw)
  To: caml-list


The following behaviour is clearly correct, but I think it is
undocumented:

Various functions in the String and Str modules accept
"String.length s" as a valid character index for "s". For example,

  Str.string_match regexp s (String.length s)

does not raise an Invalid_argument exception, but returns true or
false depending on whether regexp allows an empty string.

As mentioned above, I see that this is correct.

Should the documentation should be changed to mention this behaviour?


Thanks,

Steve

--
Steve Gardner               Centre for Information Systems Engineering
steve.gardner@npl.co.uk                   National Physical Laboratory
Tel: +44 20 8943 7060              Teddington, Middlesex, TW11 0LW, UK
Fax: +44 20 8977 7091                   http://www.npl.co.uk/npl/cise/

"The contents of the above message are my views alone and should not
be taken as representing the views held by NPL Management Ltd."




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1999-09-15 11:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-09-15 11:10 string function documentation Steve Gardner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).