chicken-users
[Top][All Lists]
Advanced

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

Re: [Chicken-users] Bug in SRFI-13 lib?


From: Elf
Subject: Re: [Chicken-users] Bug in SRFI-13 lib?
Date: Sat, 16 Feb 2008 14:58:41 -0800 (PST)


string= != string=?

-elf

On Sat, 16 Feb 2008, Matt Gushee wrote:

What's up with this?

 CHICKEN
 Version 3.0.0 - linux-unix-gnu-x86     [ manyargs dload ptables
   applyhook ]
 ...

 csi> (require-extension srfi-13)
 ; loading library srfi-13 ...
 csi> (require-extension posix)
 ; loading library posix ...

 csi> (define sysname (car (system-information)))
 csi> (string= sysname "Dogbreath")
 #f
 csi> (string= sysname "Linux")
 5

I realize that from the perspective of boolean tests, 5 is just as true as #t, so maybe it doesn't really matter, but wouldn't it be preferable to return a canonical boolean value? Is there a big performance advantage to returning an integer?






reply via email to

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