1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-20 11:40:18 +02:00

define* in psyntax

* module/ice-9/optargs.scm:
* module/ice-9/psyntax-pp.scm:
* module/ice-9/psyntax.scm: Make define* available in the default
  environment, as lambda* is available there.
This commit is contained in:
Andy Wingo 2009-10-24 16:32:27 +02:00
parent 15ab466299
commit 97bc28b60a
3 changed files with 4934 additions and 4890 deletions

View file

@ -59,12 +59,11 @@
(define-module (ice-9 optargs)
#:use-module (system base pmatch)
#:re-export (lambda*)
#:re-export (lambda* define*)
#:export (let-optional
let-optional*
let-keywords
let-keywords*
define*
define*-public
defmacro*
defmacro*-public))
@ -256,11 +255,6 @@
;; Of course, define*[-public] also supports #:rest and #:allow-other-keys
;; in the same way as lambda*.
(define-syntax define*
(syntax-rules ()
((_ (id . args) b0 b1 ...)
(define id (lambda* args b0 b1 ...)))))
(define-syntax define*-public
(syntax-rules ()
((_ (id . args) b0 b1 ...)

File diff suppressed because it is too large Load diff

View file

@ -2678,3 +2678,8 @@
(syntax e))
((_ x (... ...))
(syntax (e x (... ...)))))))))))
(define-syntax define*
(syntax-rules ()
((_ (id . args) b0 b1 ...)
(define id (lambda* args b0 b1 ...)))))