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: Sun, 01 Aug 2010 12:12:58 +0000 Message-ID: <20100801-121258.sv73118.728@savannah.gnu.org> References: <20100731-044935.sv73118.26665@savannah.gnu.org> <20100801-084114.sv20118.37594@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 1280681440 2716 80.91.229.12 (1 Aug 2010 16:50:40 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 1 Aug 2010 16:50:40 +0000 (UTC) To: Andy Wingo , Mike Gran , bug-guile@gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Sun Aug 01 18:50:38 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 1OfbkE-00077u-AL for guile-bugs@m.gmane.org; Sun, 01 Aug 2010 18:50:38 +0200 Original-Received: from localhost ([127.0.0.1]:56878 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OfbkD-0000b8-7w for guile-bugs@m.gmane.org; Sun, 01 Aug 2010 12:50:37 -0400 Original-Received: from [140.186.70.92] (port=49578 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OfbS5-000254-QU for bug-guile@gnu.org; Sun, 01 Aug 2010 12:31:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OfXPc-0007OG-6R for bug-guile@gnu.org; Sun, 01 Aug 2010 08:13:05 -0400 Original-Received: from colonialone.fsf.org ([140.186.70.51]:43169 helo=internal.in.savannah.gnu.org) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OfXPc-0007O3-4c for bug-guile@gnu.org; Sun, 01 Aug 2010 08:13:04 -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 1OfXPY-00027n-GD; Sun, 01 Aug 2010 12:13:01 +0000 Original-Received: from www-data by frontend.in.savannah.gnu.org with local (Exim 4.69) (envelope-from ) id 1OfXPW-0003Ov-FC; Sun, 01 Aug 2010 12:12:59 +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/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; OfficeLiveConnector.1.5; OfficeLivePatch.1.3) X-Apparently-From: 71.140.103.183 (Savane authenticated user mike121) In-Reply-To: <20100801-084114.sv20118.37594@savannah.gnu.org> 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:4718 Archived-At: Follow-up Comment #2, bug #30611 (project guile): Even if one were to make the argument that 1.8.7's behavior of having a key be read as an optional argument was valid, silently dropping the "3" in the (func 1 #:c 3) in the previous example is problematic. Consider the following behavior. $ (define* (funk #:key a) #t) $ (funk 1 2 3) => #t $ (define* (funk) #t) $ (funk 1 2 3) => ABORT: wrong number of args IMHO, the first of these two examples should also trigger a wrong-number-of-args error. _______________________________________________________ Reply to this item at: _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/