chicken-janitors
[Top][All Lists]
Advanced

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

[Chicken-janitors] #869: xsubstring with negative `from' argument return


From: Chicken Trac
Subject: [Chicken-janitors] #869: xsubstring with negative `from' argument returns empty string
Date: Mon, 18 Jun 2012 00:09:52 -0000

#869: xsubstring with negative `from' argument returns empty string
---------------------------------+------------------------------------------
 Reporter:  mario                |       Owner:       
     Type:  defect               |      Status:  new  
 Priority:  major                |   Milestone:       
Component:  core libraries       |     Version:  4.7.x
 Keywords:  srfi-13, xsubstring  |  
---------------------------------+------------------------------------------
 The reference implementation of SRFI-13 gives an example of
 {{{xsubstring}}} with a negative {{{from}}} argument:

 {{{
 (xsubstring "abcdef" -2) => "efabcd"
 }}}

 In chicken:

 {{{
 $ csi -nq -R srfi-13
 #;1> (xsubstring "abcdef" -2)
 ""
 }}}

 Gauche and Guile produce {{{"efabcd"}}} (they don't seem to use the
 SRFI-13 reference implementation code).

-- 
Ticket URL: <http://bugs.call-cc.org/ticket/869>
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]