From: "Germán A. Arias" <german@xelalug.org>
To: Daniel Llorens <daniel.llorens@bluewin.ch>
Cc: guile-user@gnu.org
Subject: Re: case-lambda* question
Date: Wed, 14 Nov 2012 19:01:16 -0600 [thread overview]
Message-ID: <1352941276.1653.8.camel@german-desktop> (raw)
In-Reply-To: <1352915591.1707.2.camel@german-desktop>
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 #<catch-closure 8f15df0> ...]
In unknown file:
?: 6 [apply-smob/1 #<catch-closure 8f15df0>]
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 #<procedure 8ed31c0 at
ice-9/boot-9.scm:3660:3 ()>]
3667: 2 [#<procedure 8ed31c0 at ice-9/boot-9.scm:3660:3 ()>]
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 #<undefined> 2 #:z 3]
/home/german/Escritorio/./test.scm:3:10: In procedure f:
/home/german/Escritorio/./test.scm:3:10: In procedure #<procedure f (x
#:optional y) | (x #:key y) | (x y #:key z)>: Odd length of keyword
argument list
But there is one interest line
3: 0 [f 1 #<undefined> 2 #:z 3]
What mean this? That is taking the second argument as a keyword?
next prev parent reply other threads:[~2012-11-15 1:01 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-12 13:54 case-lambda* question Daniel Llorens
2012-11-13 2:46 ` Daniel Hartwig
2012-11-14 0:55 ` Germán A. Arias
2012-11-14 10:20 ` Daniel Llorens
2012-11-14 17:53 ` Germán A. Arias
2012-11-15 1:01 ` Germán A. Arias [this message]
2013-01-14 9:41 ` Andy Wingo
2012-11-15 1:22 ` Daniel Hartwig
2012-11-19 9:43 ` Daniel Llorens
2013-01-14 9:39 ` Andy Wingo
2013-01-14 10:39 ` Andy Wingo
2013-01-14 12:22 ` Ludovic Courtès
2013-01-15 12:01 ` Daniel Llorens
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1352941276.1653.8.camel@german-desktop \
--to=german@xelalug.org \
--cc=daniel.llorens@bluewin.ch \
--cc=guile-user@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).