[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-janitors] #870: SRFI-13's string comparison procedures retu
From: |
Chicken Trac |
Subject: |
Re: [Chicken-janitors] #870: SRFI-13's string comparison procedures return integers |
Date: |
Tue, 19 Jun 2012 01:03:18 -0000 |
#870: SRFI-13's string comparison procedures return integers
-----------------------------+----------------------------------------------
Reporter: mario | Owner:
Type: defect | Status: new
Priority: major | Milestone:
Component: core libraries | Version: 4.7.x
Resolution: | Keywords: srfi-13, string comparison
-----------------------------+----------------------------------------------
Comment(by zbigniew):
Ref impl is obviously wrong and the bug was propagated to Chicken. It
uses string-compare's PROC= branch and returns its value and, as string-
compare states, "in the case of PROC=, it is always END1" -- not a
boolean. Changing "values" to (lambda (i) (and i)) should fix it.
Question is, who is right--the guy that wrote the srfi, or the guy that
wrote the reference implementation.
The answer is they are both right. Please, put down the Sig Sauer, I beg
you.
--
Ticket URL: <http://bugs.call-cc.org/ticket/870#comment:1>
Chicken Scheme <http://www.call-with-current-continuation.org/>
Chicken Scheme is a compiler for the Scheme programming language.