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 mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users