chicken-users
[Top][All Lists]
Advanced

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

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


From: Matt Gushee
Subject: [Chicken-users] Bug in SRFI-13 lib?
Date: Sat, 16 Feb 2008 15:48:45 -0700
User-agent: Thunderbird 2.0.0.9 (X11/20071212)

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?

--
Matt Gushee
: Bantam - lightweight file manager : matt.gushee.net/software/bantam/ :
: RASCL's A Simple Configuration Language :     matt.gushee.net/rascl/ :




reply via email to

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