chicken-janitors
[Top][All Lists]
Advanced

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

[Chicken-janitors] Re: #411: chicken-doc-admin + 4.6.2: Error: (irregex-


From: Chicken Trac
Subject: [Chicken-janitors] Re: #411: chicken-doc-admin + 4.6.2: Error: (irregex-match-start-index) not a valid index
Date: Sat, 09 Oct 2010 00:34:53 -0000

#411: chicken-doc-admin + 4.6.2: Error: (irregex-match-start-index) not a valid
index
-------------------------+--------------------------------------------------
  Reporter:  mario       |       Owner:  zbigniew                
      Type:  defect      |      Status:  new                     
  Priority:  major       |   Milestone:  4.7.0                   
 Component:  extensions  |     Version:  4.6.x                   
Resolution:              |    Keywords:  chicken-doc-admin, 4.6.2
-------------------------+--------------------------------------------------

Comment(by zbigniew):

 Appears to be a behavior change (bug, I think) in string-search-positions,
 because irregex-match-start-index now throws an error instead of returning
 #f.  Below is a simplified test case.

 4.6.0

 #;5> (string-search-positions "(foo)|(bar)|(baz)" "bar")
 ((0 3) (#f #f) (0 3) (#f #f))

 4.6.2

 #;2> (string-search-positions "(foo)|(bar)|(baz)" "bar")
 Error: (irregex-match-start-index) not a valid index
 #<regexp-match (3 submatches)>
 3

 The actual use case is a SRE like (or rx1 rx2 rx3) where the rx* contain
 submatches; in this case I want to ignore the submatches and just get the
 positions, which should be in the car of the result.  However, 4.6.2 just
 refuses to build the result.  Help?

-- 
Ticket URL: <http://bugs.call-cc.org/ticket/411#comment:1>
Chicken Scheme <http://www.call-with-current-continuation.org/>
Chicken Scheme is a compiler for the Scheme programming language.

reply via email to

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