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 11:53:11 -0600 Message-ID: <1352915591.1707.2.camel@german-desktop> References: <7A088671-9922-4ECF-A5C5-841AEFDBCA80@bluewin.ch> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1352915609 26336 80.91.229.3 (14 Nov 2012 17:53:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 14 Nov 2012 17:53:29 +0000 (UTC) Cc: guile-user@gnu.org To: Daniel Llorens Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Wed Nov 14 18:53:40 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 1TYh9Z-0006I6-JS for guile-user@m.gmane.org; Wed, 14 Nov 2012 18:53:33 +0100 Original-Received: from localhost ([::1]:49121 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TYh9P-0002Zx-Uk for guile-user@m.gmane.org; Wed, 14 Nov 2012 12:53:23 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:44621) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TYh9J-0002YC-MN for guile-user@gnu.org; Wed, 14 Nov 2012 12:53:20 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TYh9G-0000pk-KA for guile-user@gnu.org; Wed, 14 Nov 2012 12:53:17 -0500 Original-Received: from mail-yh0-f41.google.com ([209.85.213.41]:55951) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TYh9G-0000pb-Fe for guile-user@gnu.org; Wed, 14 Nov 2012 12:53:14 -0500 Original-Received: by mail-yh0-f41.google.com with SMTP id 47so156306yhr.0 for ; Wed, 14 Nov 2012 09:53:13 -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=a7PlOVJVz9fXEIXiCAuvgz2gOO4tOK3Om8tXwHzum1M=; b=F7DbhwbNAWgptjjHGhHrM8c5Rk/qbsB8BAC+UIsSDIug1nzLoVER8PYyqrmnkqWf2a MBy1x26CUF/GqEXB0yxHXwEN/0jhA0CJXJrV1jV855eCLxNNm2g5GligvlGTvfxAjs80 8Md1j4w3qXmbN4fEL0sdsP/Jy+qgFUrox0yBIK14PXViwYI7Q85HNuZ822mYw7PNpAME Qlw1V+1eZKjTMiRfr1hohiY7OplcQI+x/3S70yl4ilQ8ccYTw7bKQ2BlkrnN8wQ+qgWB Vd/6B9AFCCdzzPEVS2h6QCYJzD/fGWtC8C4oLEbg3LsXnF3fhxnE7wyrFr4ItgXS4W6W i6hQ== Original-Received: by 10.236.137.112 with SMTP id x76mr2232462yhi.56.1352915593803; Wed, 14 Nov 2012 09:53:13 -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 e7sm12121086ang.8.2012.11.14.09.53.12 (version=SSLv3 cipher=OTHER); Wed, 14 Nov 2012 09:53:13 -0800 (PST) In-Reply-To: <7A088671-9922-4ECF-A5C5-841AEFDBCA80@bluewin.ch> X-Mailer: Evolution 3.2.2- X-Gm-Message-State: ALoCoQlLXQIjoqdETg7/1k7WOoqWwp+GfggUcxpd8XGCBns9kF5olFu9kglZ0dtARlOrSdOd5BMS X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 209.85.213.41 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:9681 Archived-At: El mié, 14-11-2012 a las 11:20 +0100, Daniel Llorens escribió: > > Is this the test? > > (pass-if "case-lambda*" > (null? (call-with-warnings > (lambda () > (compile '(let ((f (case-lambda* > ((x #:optional y) 1) > ((x #:key y) 2) > ((x y #:key z) 3)))) > (list (f 1) > (f 1 2) > (f #:y 2) > (f 1 2 #:z 3))) > #:opts %opts-w-arity > #:to 'assembly))))) > Right. > I also get an error here. Strangely, I can run make check without anything being reported. I get a warning > > UNRESOLVED: tree-il.test: warnings: unused-toplevel: used by macro I can run now the tests, and this test in particular passes without problem. But I don't know why. > > But I still don't understand how case-lambda* works or should work. The error is in the last call (f 1 2 #:z 3). If I remove it I get '(1 1 1), but how can (f #:y 2) match (x #:optional y) ?? > > I'm running acc1d8… but this test has been in there since 2009 apparently. >