unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* [bug #30611] [1.8.7] (ice-9 optargs) mixes keyword and optional args
@ 2010-07-31  4:49 Mike Gran
  2010-08-01  8:41 ` Andy Wingo
  0 siblings, 1 reply; 4+ messages in thread
From: Mike Gran @ 2010-07-31  4:49 UTC (permalink / raw)
  To: Mike Gran, bug-guile


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/




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-09-06 21:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-31  4:49 [bug #30611] [1.8.7] (ice-9 optargs) mixes keyword and optional args Mike Gran
2010-08-01  8:41 ` Andy Wingo
2010-08-01 12:12   ` Mike Gran
2011-09-06 21:32     ` Ludovic Courtès

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).