caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] With String.sub I need to catch "Bytes.sub" exception
@ 2014-09-13 22:47 Oliver Bandel
  2014-09-13 22:53 ` Benjamin Greenman
  0 siblings, 1 reply; 5+ messages in thread
From: Oliver Bandel @ 2014-09-13 22:47 UTC (permalink / raw)
  To: caml-list

Hello,

is this a known bug?

Needed to change code from

    with Invalid_argument("Strings.sub")
to
    with Invalid_argument("Bytes.sub")

The code now looks like this and then works again:


                   try
                     if parser_url_len > 0 && parser_url = String.sub  
url 0 parser_url_len then parser_name else aux tl
                   with Invalid_argument("Bytes.sub") -> aux tl (*  
this happens if url is shorter than parser_url *)


Ciao,
    Oliver


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-09-14 15:19 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-13 22:47 [Caml-list] With String.sub I need to catch "Bytes.sub" exception Oliver Bandel
2014-09-13 22:53 ` Benjamin Greenman
2014-09-14  9:14   ` Gabriel Scherer
2014-09-14 15:18     ` Oliver Bandel
2014-09-14 15:19     ` Oliver Bandel

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