allow kwargs to repl metacommands
authorAndy Wingo <wingo@pobox.com>
Sat, 26 Jun 2010 19:46:28 +0000 (21:46 +0200)
committerAndy Wingo <wingo@pobox.com>
Sat, 26 Jun 2010 19:46:42 +0000 (21:46 +0200)
* module/system/repl/command.scm (define-meta-command): Allow repl
  meta-commands to have optional or keyword arguments.

module/system/repl/command.scm

index 9e79eb7..ca44c90 100644 (file)
                                 ((language-reader (repl-language repl))
                                  port (current-module))))))
               ...)
-         (apply (lambda datums b0 b1 ...)
+         (apply (lambda* datums b0 b1 ...)
                 (let ((port (open-input-string (read-line repl))))
                   (let lp ((out '()))
                     (let ((x (read port)))