unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* Dotted pair call argument
@ 2012-02-21 14:03 David Kastrup
  2012-02-21 15:36 ` Mark H Weaver
  0 siblings, 1 reply; 9+ messages in thread
From: David Kastrup @ 2012-02-21 14:03 UTC (permalink / raw)
  To: guile-devel


Hi, I am not sure whether this is a Scheme feature, but it seems
inconvenient that

((lambda (a . b) b) 1 . 2)

bombs out.  The same with

(apply (lambda (a . b) b) 1 2)

I guess my "real" problem is that I'd like to do call wrapping by writing

(lambda ( . x) (fun . x))

instead of having to write

(lambda ( . x) (apply fun x))

I assume eval is not supposed to try dealing with dotted lists?

-- 
David Kastrup




^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2012-02-22  9:06 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-21 14:03 Dotted pair call argument David Kastrup
2012-02-21 15:36 ` Mark H Weaver
2012-02-21 15:59   ` David Kastrup
2012-02-21 16:05     ` David Kastrup
2012-02-21 17:23     ` Mark H Weaver
2012-02-21 18:05       ` David Kastrup
2012-02-22  0:41         ` Mark H Weaver
2012-02-22  9:06           ` David Kastrup
2012-02-21 20:31       ` Neil Jerram

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).