bug-guile
[Top][All Lists]
Advanced

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

[bug #30611] [1.8.7] (ice-9 optargs) mixes keyword and optional args


From: Mike Gran
Subject: [bug #30611] [1.8.7] (ice-9 optargs) mixes keyword and optional args
Date: Sat, 31 Jul 2010 04:49:36 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.7) Gecko/20100723 Fedora/3.6.7-1.fc13 Firefox/3.6.7

URL:
  <http://savannah.gnu.org/bugs/?30611>

                 Summary: [1.8.7] (ice-9 optargs) mixes keyword and optional
args
                 Project: Guile
            Submitted by: mike121
            Submitted on: Sat 31 Jul 2010 04:49:35 AM GMT
                Category: None
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

In 1.8.7, the (ice-9 optargs) library does not correctly handle
define*'s that have both optional and keyword arguments.

Consider the following

guile> (use-modules (ice-9 optargs))
guile> (define* (func a #:optional b #:key c) (list a b c))
guile> (func 1 #:c 3)

1.8.7 returns (1 #:c #f).  The correct answer is (1 #f 3)

But, this works in 1.9.11.






    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?30611>

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




reply via email to

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