bug-kawa
[Top][All Lists]
Advanced

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

[Bug-kawa] [bug #15579] append-map may destroy arguments.


From: anonymous
Subject: [Bug-kawa] [bug #15579] append-map may destroy arguments.
Date: Mon, 30 Jan 2006 20:07:00 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; ja; rv:1.8) Gecko/20060119 Vine/1.5-0vl4 Firefox/1.5 Mnenhy/0.7.3.0

URL:
  <http://savannah.gnu.org/bugs/?func=detailitem&item_id=15579>

                 Summary: append-map may destroy arguments.
                 Project: Kawa
            Submitted by: None
            Submitted on: 月 2006年01月30日 at 20:06
                Category: Scheme library
                Severity: 3 - Normal
              Item Group: Unexpected result
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open

    _______________________________________________________

Details:

I found a bug while using KAWA-1.8.

If you run the below program, you can see that the program does not return at
2nd append-map call. I think the reason of this is that the constants in foo
are destroyed by append! in append-map.

(require 'list-lib)

(define (foo x)
  (cond ((= x 0) '(a))
        ((= x 1) '(b))
        (else '())))

; It is ok.
(append-map foo '(0 1 2))

; But it does not return.
(append-map foo '(0 1 2))







    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?func=detailitem&item_id=15579>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

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