From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id WAA08133; Wed, 22 Aug 2001 22:31:32 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id WAA01196 for ; Wed, 22 Aug 2001 22:31:31 +0200 (MET DST) Received: from www.invert.com (invert.com [209.164.21.15]) by concorde.inria.fr (8.11.1/8.10.0) with ESMTP id f7MKVTf29550 for ; Wed, 22 Aug 2001 22:31:30 +0200 (MET DST) Received: (from miles@localhost) by www.invert.com (8.10.1/8.10.1AA) id f7MKV0v94017; Wed, 22 Aug 2001 13:31:00 -0700 (PDT) (envelope-from miles) Date: Wed, 22 Aug 2001 13:31:00 -0700 From: Miles Egan To: Markus Mottl Cc: neale-caml@woozle.org, caml-list@pauillac.inria.fr Subject: Re: [Caml-list] Str.string_match raising Invalid_argument "String.sub" in gc Message-ID: <20010822133059.A93968@caddr.com> References: <20010822222317.A3521@chopin.ai.univie.ac.at> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010822222317.A3521@chopin.ai.univie.ac.at>; from markus@mail4.ai.univie.ac.at on Wed, Aug 22, 2001 at 10:23:17PM +0200 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk 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 , > > 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