caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* ocamlnet (aka netstring)
@ 2005-06-24 16:31 Anastasia Gornostaeva
  2005-06-24 18:30 ` [Caml-list] " Richard Jones
  0 siblings, 1 reply; 3+ messages in thread
From: Anastasia Gornostaeva @ 2005-06-24 16:31 UTC (permalink / raw)
  To: caml-list

Hello.

It is not possible to use Ocamlnet because the API of pcre-ocaml library
was changed. Will the author update in the future this library?

from changelog of pcre-ocaml:

2004-04-29:  Changed behaviour of "get_substring"!!!

             It now does not return the empty string anymore if an
             accessed substring was not captured.  It raises the exception
             "Not_found" instead.


ermine


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

* Re: [Caml-list] ocamlnet (aka netstring)
  2005-06-24 16:31 ocamlnet (aka netstring) Anastasia Gornostaeva
@ 2005-06-24 18:30 ` Richard Jones
  2005-06-24 20:55   ` Markus Mottl
  0 siblings, 1 reply; 3+ messages in thread
From: Richard Jones @ 2005-06-24 18:30 UTC (permalink / raw)
  Cc: caml-list

On Fri, Jun 24, 2005 at 08:31:59PM +0400, Anastasia Gornostaeva wrote:
> Hello.
> 
> It is not possible to use Ocamlnet because the API of pcre-ocaml library
> was changed. Will the author update in the future this library?
> 
> from changelog of pcre-ocaml:
> 
> 2004-04-29:  Changed behaviour of "get_substring"!!!
> 
>              It now does not return the empty string anymore if an
>              accessed substring was not captured.  It raises the exception
>              "Not_found" instead.

Luckily this change can be made in a backwards-compatible way.  I had
to do it for mod_caml IIRC.

Rich.

-- 
Richard Jones, CTO Merjis Ltd.
Merjis - web marketing and technology - http://merjis.com
Team Notepad - intranets and extranets for business - http://team-notepad.com


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

* Re: [Caml-list] ocamlnet (aka netstring)
  2005-06-24 18:30 ` [Caml-list] " Richard Jones
@ 2005-06-24 20:55   ` Markus Mottl
  0 siblings, 0 replies; 3+ messages in thread
From: Markus Mottl @ 2005-06-24 20:55 UTC (permalink / raw)
  To: Richard Jones; +Cc: caml-list

On 6/24/05, Richard Jones <rich@annexia.org> wrote:
> Luckily this change can be made in a backwards-compatible way.  I had
> to do it for mod_caml IIRC.

Yes, that was also the reason for the change: it gives you more
options, because you can (but need not) map the exception to the empty
string. It is trivial to get the old behaviour back, but the new one
seems to be a saner default.

Regards,
Markus

-- 
Markus Mottl        http://www.ocaml.info        markus.mottl@gmail.com


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

end of thread, other threads:[~2005-06-24 20:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-06-24 16:31 ocamlnet (aka netstring) Anastasia Gornostaeva
2005-06-24 18:30 ` [Caml-list] " Richard Jones
2005-06-24 20:55   ` Markus Mottl

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