From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mike Gran Newsgroups: gmane.lisp.guile.bugs Subject: [bug #30611] [1.8.7] (ice-9 optargs) mixes keyword and optional args Date: Sat, 31 Jul 2010 04:49:36 +0000 Message-ID: <20100731-044935.sv73118.26665@savannah.gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain;charset=UTF-8 X-Trace: dough.gmane.org 1280551787 2471 80.91.229.12 (31 Jul 2010 04:49:47 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 31 Jul 2010 04:49:47 +0000 (UTC) To: Mike Gran , bug-guile@gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Sat Jul 31 06:49:46 2010 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Of413-0002fU-J6 for guile-bugs@m.gmane.org; Sat, 31 Jul 2010 06:49:45 +0200 Original-Received: from localhost ([127.0.0.1]:49584 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Of412-0002Kt-Vn for guile-bugs@m.gmane.org; Sat, 31 Jul 2010 00:49:45 -0400 Original-Received: from [140.186.70.92] (port=44987 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Of40x-0002Ke-2A for bug-guile@gnu.org; Sat, 31 Jul 2010 00:49:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Of40v-0004ME-Oz for bug-guile@gnu.org; Sat, 31 Jul 2010 00:49:38 -0400 Original-Received: from colonialone.fsf.org ([140.186.70.51]:57915 helo=internal.in.savannah.gnu.org) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Of40v-0004MA-Ni for bug-guile@gnu.org; Sat, 31 Jul 2010 00:49:37 -0400 Original-Received: from [10.1.0.103] (helo=frontend.in.savannah.gnu.org) by internal.in.savannah.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Of40u-0004lQ-NO; Sat, 31 Jul 2010 04:49:36 +0000 Original-Received: from www-data by frontend.in.savannah.gnu.org with local (Exim 4.69) (envelope-from ) id 1Of40u-00026v-MT; Sat, 31 Jul 2010 04:49:36 +0000 X-Savane-Server: savannah.gnu.org:443 [10.1.0.103] X-Savane-Project: guile X-Savane-Tracker: bugs X-Savane-Item-ID: 30611 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 X-Apparently-From: 71.130.213.25 (Savane authenticated user mike121) Original-References: In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: bug-guile@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:4717 Archived-At: URL: 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: _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/