1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-04-30 03:40:34 +02:00

Provide curried version of define*-public.

* module/ice-9/curried-definitions.scm (define*-public): New macro.
This commit is contained in:
Ian Price 2014-07-31 16:05:58 +01:00
parent 8857e271d8
commit b072b8e692

View file

@ -17,7 +17,8 @@
(define-module (ice-9 curried-definitions)
#:replace ((cdefine . define)
(cdefine* . define*)
define-public))
define-public
define*-public))
(define-syntax cdefine
(syntax-rules ()
@ -44,3 +45,13 @@
(begin
(define name val)
(export name)))))
(define-syntax define*-public
(syntax-rules ()
((_ (head . rest) body body* ...)
(define*-public head
(lambda* rest body body* ...)))
((_ name val)
(begin
(define* name val)
(export name)))))