[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Procedures with keyword args ignore extra args
From: |
Matthias Koeppe |
Subject: |
Procedures with keyword args ignore extra args |
Date: |
29 Nov 2000 13:59:46 +0100 |
I define a procedure which takes keyword arguments, using define* from
(ice-9 optargs). When called with an extra (non-key) argument, the
procedure silently ignores this argument. It should signal an error
instead.
(use-modules (ice-9 optargs))
(define* (x #&key (a 0)) a)
(x 1) ==> 0 ; should signal error
--
Matthias Köppe -- http://www.math.uni-magdeburg.de/~mkoeppe
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Procedures with keyword args ignore extra args,
Matthias Koeppe <=