[gambit-list] #!key behavior

Adam adam.mlmb at gmail.com
Fri Dec 18 02:00:45 EST 2015


Marc,

Sometimes, it can be useful to have a procedure that splices out some key
arguments and then passes on the remainder.

E.g.,

(define (outerproc #!key a b #!rest r)
  logics
  (apply innerproc r))

(define (innerproc #!key c d)
  ..)

Currently, doing (outerproc c: myvalue) causes runtime error "Unknown
keyword argument passed to procedure".

What's the motivation for this?

Would you feel that it could be relevant to include a |declare| that would
alter this behavior?

Thanks,
Adam
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://webmail.iro.umontreal.ca/pipermail/gambit-list/attachments/20151218/b5476567/attachment.html 


More information about the Gambit-list mailing list