From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?Germ=E1n?= "A. Arias" Newsgroups: gmane.lisp.guile.user Subject: Re: case-lambda* question Date: Wed, 14 Nov 2012 19:01:16 -0600 Message-ID: <1352941276.1653.8.camel@german-desktop> References: <7A088671-9922-4ECF-A5C5-841AEFDBCA80@bluewin.ch> <1352915591.1707.2.camel@german-desktop> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1352941295 23033 80.91.229.3 (15 Nov 2012 01:01:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 15 Nov 2012 01:01:35 +0000 (UTC) Cc: guile-user@gnu.org To: Daniel Llorens Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Thu Nov 15 02:01:45 2012 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TYnpr-0005qF-Tf for guile-user@m.gmane.org; Thu, 15 Nov 2012 02:01:40 +0100 Original-Received: from localhost ([::1]:37840 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TYnph-0007SB-LM for guile-user@m.gmane.org; Wed, 14 Nov 2012 20:01:29 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:47897) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TYnpb-0007PY-1c for guile-user@gnu.org; Wed, 14 Nov 2012 20:01:26 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TYnpX-0004JV-W1 for guile-user@gnu.org; Wed, 14 Nov 2012 20:01:22 -0500 Original-Received: from mail-gh0-f179.google.com ([209.85.160.179]:41864) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TYnpX-0004JR-Rg for guile-user@gnu.org; Wed, 14 Nov 2012 20:01:19 -0500 Original-Received: by mail-gh0-f179.google.com with SMTP id r14so253919ghr.38 for ; Wed, 14 Nov 2012 17:01:18 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:subject:from:to:cc:date:in-reply-to:references :content-type:x-mailer:content-transfer-encoding:mime-version :x-gm-message-state; bh=UxmlpV7tkqhSyXsBzE0V6tT798a05oBxdRNkbcepTDY=; b=ipXujczgbup7SvFgShU9Dl1FDT2I6ugAIU6WjG7urX4dP7URzl6eqKkflG46wfgxKD HPwYQ+bmgfrpkFNpq4l+u1XNAOyEtMMEekYkrEnE9lUeNaBsqbd53Efgzl5DamCxkqGr H3odl7lfsYFPkYo2/JLyslxovHRiNgnPNZ+Ids9QUHWQRIBN6GpQCO7FHHIhA4b5FkzL K3dazeX77V3JXtIsa6jOnXz915DWPhLDr4svmYx00Szvph9K5zVDEFukpve0QUEGMeWa fQ8SY9HemO7ybVmHQMfuoc2GL7KblNIq2/YbVoq+0KNcgDh1evpQEHEFaz/Kd6Hf7Hv8 d73g== Original-Received: by 10.236.9.104 with SMTP id 68mr3553251yhs.89.1352941278817; Wed, 14 Nov 2012 17:01:18 -0800 (PST) Original-Received: from [192.168.1.2] (79.5.151.186.static.intelnet.net.gt. [186.151.5.79]) by mx.google.com with ESMTPS id z6sm14553549yhl.8.2012.11.14.17.01.17 (version=SSLv3 cipher=OTHER); Wed, 14 Nov 2012 17:01:17 -0800 (PST) In-Reply-To: <1352915591.1707.2.camel@german-desktop> X-Mailer: Evolution 3.2.2- X-Gm-Message-State: ALoCoQlFM2hTGBldtS4E4ekipTPoxoFAk3Qil9Gtcfir6Rb29ImWujoPAbIWPAD84Zsh1hAQhUcT X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 209.85.160.179 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:9682 Archived-At: Running this. (define f (case-lambda* ((x #:optional y) 1) ((x #:key y) 2) ((x y #:key z) 3))) (f 1 2) (f #:y 2) (f 1 2 #:z 3) I get. Backtrace: In ice-9/boot-9.scm: 157: 7 [catch #t # ...] In unknown file: ?: 6 [apply-smob/1 #] In ice-9/boot-9.scm: 63: 5 [call-with-prompt prompt0 ...] In ice-9/eval.scm: 414: 4 [eval # #] In ice-9/boot-9.scm: 2131: 3 [save-module-excursion #] 3667: 2 [#] In unknown file: ?: 1 [load-compiled/vm "/home/german/.cache/guile/ccache/2.0-LE-4-2.0/home/german/Escritorio/test.scm.go"] In /home/german/Escritorio/./test.scm: 3: 0 [f 1 # 2 #:z 3] /home/german/Escritorio/./test.scm:3:10: In procedure f: /home/german/Escritorio/./test.scm:3:10: In procedure #: Odd length of keyword argument list But there is one interest line 3: 0 [f 1 # 2 #:z 3] What mean this? That is taking the second argument as a keyword?