[Top][All Lists]

[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: Gecko/20100723 Fedora/3.6.7-1.fc13 Firefox/3.6.7


                 Summary: [1.8.7] (ice-9 optargs) mixes keyword and optional
                 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



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:


  Message sent via/by Savannah

reply via email to

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