mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-11 22:31:12 +02:00
lambda* in resolve-module
* module/ice-9/boot-9.scm (resolve-module): Use lambda*.
This commit is contained in:
parent
5a6621244f
commit
6b7d701e73
1 changed files with 2 additions and 5 deletions
|
@ -2404,11 +2404,8 @@ If there is no handler at all, Guile prints an error and then exits."
|
|||
;; Define the-root-module as '(guile).
|
||||
(module-define-submodule! root 'guile the-root-module)
|
||||
|
||||
(lambda (name . args) ;; #:optional (autoload #t) (version #f)
|
||||
(let* ((already (nested-ref-module root name))
|
||||
(numargs (length args))
|
||||
(autoload (or (= numargs 0) (car args)))
|
||||
(version (and (> numargs 1) (cadr args))))
|
||||
(lambda* (name #:optional (autoload #t) (version #f))
|
||||
(let ((already (nested-ref-module root name)))
|
||||
(cond
|
||||
((and already
|
||||
(or (not autoload) (module-public-interface already)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue