chicken-janitors
[Top][All Lists]
Advanced

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

[Chicken-janitors] #74: Incorrect regexp in call to string-substitute ca


From: Chicken Trac
Subject: [Chicken-janitors] #74: Incorrect regexp in call to string-substitute causes random error rather than specific error message
Date: Tue, 08 Sep 2009 12:30:53 -0000

#74: Incorrect regexp in call to string-substitute causes random error rather
than specific error message
--------------------------+-------------------------------------------------
 Reporter:  donallen      |       Owner:       
     Type:  defect        |      Status:  new  
 Priority:  major         |   Milestone:       
Component:  build system  |     Version:  4.1.x
 Keywords:                |  
--------------------------+-------------------------------------------------
 #;1> (string-substitute
   "{12mp}"
   "TRUE"
   "{12mp}"
   #t)

 Error: (car) bad argument type: ()

         Call history:

         <syntax>                (string-substitute "{12mp}" "TRUE"
 "{12mp}" #t)
         <eval>          (string-substitute "{12mp}" "TRUE" "{12mp}" #t)
 <--
 #;1>

 The braces in the regexp are incorrect -- they needed backslashes -- but
 the resulting error is very unhelpful. The regexp is mal-formed, and the
 regexp compiler ought to say so.

-- 
Ticket URL: <http://www.irp.oist.jp/trac/chicken/ticket/74>
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]