guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Dotted pair call argument


From: David Kastrup
Subject: Dotted pair call argument
Date: Tue, 21 Feb 2012 15:03:42 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux)

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]