[Top][All Lists]
[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
- [Chicken-users] dev-snapshot 4.6.3, Felix, 2010/10/06
- Re: [Chicken-users] dev-snapshot 4.6.3, John Cowan, 2010/10/06
- Re: [Chicken-users] dev-snapshot 4.6.3, Jim Ursetto, 2010/10/07
- [Chicken-users] Using irregex safely & responsibly [Was: Re: dev-snapshot 4.6.3], Peter Bex, 2010/10/07
- Re: [Chicken-users] Using irregex safely & responsibly [Was: Re: dev-snapshot 4.6.3], Jim Ursetto, 2010/10/07
- Re: [Chicken-users] Using irregex safely & responsibly [Was: Re: dev-snapshot 4.6.3],
Peter Bex <=
- Re: [Chicken-users] Using irregex safely & responsibly [Was: Re: dev-snapshot 4.6.3], Peter Bex, 2010/10/08
- Re: [Chicken-users] Using irregex safely & responsibly [Was: Re: dev-snapshot 4.6.3], Jim Ursetto, 2010/10/08
- Re: [Chicken-users] Using irregex safely & responsibly [Was: Re: dev-snapshot 4.6.3], Jim Ursetto, 2010/10/08
- Re: [Chicken-users] Using irregex safely & responsibly, Felix, 2010/10/08
- Re: [Chicken-users] Using irregex safely & responsibly, Alex Shinn, 2010/10/11
- Re: [Chicken-users] Using irregex safely & responsibly, Peter Bex, 2010/10/11
- Re: [Chicken-users] Using irregex safely & responsibly, Jim Ursetto, 2010/10/11
- Re: [Chicken-users] Using irregex safely & responsibly, Alex Shinn, 2010/10/11
- Re: [Chicken-users] Using irregex safely & responsibly, Peter Bex, 2010/10/11
- Re: [Chicken-users] Using irregex safely & responsibly, Jim Ursetto, 2010/10/11