Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] Str.string_match raising Invalid_argument "String.sub" in gc
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Miles Egan <miles@c...>
Subject: Re: [Caml-list] Str.string_match raising Invalid_argument "String.sub" in gc
On Wed, Aug 22, 2001 at 10:23:17PM +0200, Markus Mottl wrote:
> On Wed, 22 Aug 2001, neale-caml@woozle.org wrote:
> > Hi, I'm converting over some examples from the Perl cookbook to learn
> > OCaml and help with the PLEAC project <http://pleac.sourceforge.net/>,
> > and I'm running into some strange behavior with the Str structure;
> > I think it's something to do with garbage collection.
> 
> I think it might be more suitable to translate the PLEAC-examples to
> OCaml using the PCRE-library (Perl Compatible Regular Expressions):
> it's much easier to get things right (e.g. no problems with evaluation
> order as you just had - the PCRE is stateless). You also don't have
> to think Emacs-style with regular expressions. Furthermore, Perl
> supports regexp features that are not available in the Str-module:
> without the PCRE-library you'd have to write significantly more code
> for some PLEAC-examples.

I've asked this several times before, but I think it's worth asking again: is
there any chance of adding pcre to the stock distribution?  It's superior in
every way the the str module and much friendlier to python/perl refugees.

-- 
miles

"We in the past evade X, where X is something which we believe to be a
lion, through the act of running." - swiftrain@geocities.com
-------------------
Bug reports: http://caml.inria.fr/bin/caml-bugs  FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr  Archives: http://caml.inria.fr