GNU bug report logs - #10337
cdr of `(cons #nil #nil)' is not nil

Previous Next

Package: guile;

Reported by: BT Templeton <bpt <at> hcoop.net>

Date: Wed, 21 Dec 2011 05:37:02 UTC

Severity: normal

Done: Andy Wingo <wingo <at> pobox.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 10337 in the body.
You can then email your comments to 10337 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guile <at> gnu.org:
bug#10337; Package guile. (Wed, 21 Dec 2011 05:37:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to BT Templeton <bpt <at> hcoop.net>:
New bug report received and forwarded. Copy sent to bug-guile <at> gnu.org. (Wed, 21 Dec 2011 05:37:03 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: BT Templeton <bpt <at> hcoop.net>
To: bug-guile <at> gnu.org
Subject: cdr of `(cons #nil #nil)' is not nil
Date: Tue, 20 Dec 2011 22:49:58 -0500
I'm using Guile 2.0.3.87-b798 on x86_64-unknown-linux-gnu.

Guile's compiler fails to maintain the distinction between the nil
object and the empty list in some cases:

scheme@(guile-user)> (equal? (cons #t #nil) (cons #t '()))
$1 = #t
scheme@(guile-user)> (eq? (cdr (cons #t #nil)) (cdr (cons #t '())))
$2 = #t
scheme@(guile-user)> (compile '(cons #t #nil) #:from 'scheme #:to
  'tree-il)
$3 = #<tree-il (apply (toplevel cons) (const #t) (const #nil))>
scheme@(guile-user)> (compile '(cons #t #nil) #:from 'scheme #:to 'glil)
$4 = #<glil (program () (std-prelude 0 0 #f) (label :LCASE136) (const
  #t) (call list 1) (call return 1)>)

-- 
Inteligenta persono lernas la lingvon Esperanton rapide kaj facile.
Esperanto estas moderna, kultura lingvo por la mondo. Simpla, fleksebla,
belsona, Esperanto estas la praktika solvo de la problemo de universala
interkompreno. Lernu la interlingvon Esperanton!




Information forwarded to bug-guile <at> gnu.org:
bug#10337; Package guile. (Thu, 22 Dec 2011 03:09:02 GMT) Full text and rfc822 format available.

Message #8 received at 10337 <at> debbugs.gnu.org (full text, mbox):

From: Andy Wingo <wingo <at> pobox.com>
To: BT Templeton <bpt <at> hcoop.net>
Cc: 10337 <at> debbugs.gnu.org
Subject: Re: bug#10337: cdr of `(cons #nil #nil)' is not nil
Date: Wed, 21 Dec 2011 22:05:57 -0500
On Tue 20 Dec 2011 22:49, BT Templeton <bpt <at> hcoop.net> writes:

> scheme@(guile-user)> (equal? (cons #t #nil) (cons #t '()))
> $1 = #t

Fixed.  Thanks for the report!

Andy
-- 
http://wingolog.org/




Reply sent to Andy Wingo <wingo <at> pobox.com>:
You have taken responsibility. (Thu, 22 Dec 2011 03:09:02 GMT) Full text and rfc822 format available.

Notification sent to BT Templeton <bpt <at> hcoop.net>:
bug acknowledged by developer. (Thu, 22 Dec 2011 03:09:02 GMT) Full text and rfc822 format available.

Message #13 received at 10337-done <at> debbugs.gnu.org (full text, mbox):

From: Andy Wingo <wingo <at> pobox.com>
To: 10337-done <at> debbugs.gnu.org
Subject: Re: bug#10337: cdr of `(cons #nil #nil)' is not nil
Date: Wed, 21 Dec 2011 22:06:27 -0500
Bug fixed in cc8afa2b361635953dfba7f10e4193b1f243a50f.
-- 
http://wingolog.org/




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 19 Jan 2012 12:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 13 years and 158 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.