chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] Using irregex safely & responsibly [Was: Re: dev-sna


From: Peter Bex
Subject: Re: [Chicken-users] Using irregex safely & responsibly [Was: Re: dev-snapshot 4.6.3]
Date: Fri, 8 Oct 2010 09:05:10 +0200
User-agent: Mutt/1.4.2.3i

On Thu, Oct 07, 2010 at 08:37:59PM -0500, Jim Ursetto wrote:
> Does this mean for every egg that uses the irregex API directly, I
> need to insert this [cond-expand] blob of code?

You have three options:
- Add a dependency on the regex egg and keep doing
   (require-library regex)(import irregex) like before
- Insert this blob of code to ensure it works with old and new Chickens
- Drop the blob if you don't care about older Chickens.

> There is some inconsistency in the docs:
> 
> irregex-match-num-submatches: Returns the number of numbered
> submatches that are defined in the
> irregex or match object.
> irregex-match-valid-index?: Returns {{#t}} iff the {{index-or-name}}
> named submatch or index is defined in the {{match}} object.
> 
> But below, *-valid-index? says undefined when *-num-submatches says defined:

Hm, I'll have to take this up with Alex, it looks like a bug indeed.

Cheers,
Peter
-- 
http://sjamaan.ath.cx
--
"The process of preparing programs for a digital computer
 is especially attractive, not only because it can be economically
 and scientifically rewarding, but also because it can be an aesthetic
 experience much like composing poetry or music."
                                                        -- Donald Knuth



reply via email to

[Prev in Thread] Current Thread [Next in Thread]