diff options
author | Andy Wingo <wingo@pobox.com> | 2019-11-29 11:51:29 +0100 |
---|---|---|
committer | Andy Wingo <wingo@pobox.com> | 2019-11-29 11:51:29 +0100 |
commit | cf08dbdc189f0005cab6f2ec7b23ed9d150ec43d (patch) | |
tree | 8e0fb3579bbf5bd496f5c7e10b770e6c4287c6db /doc/ref/api-modules.texi | |
parent | 8304b15807debfb1aba6ef6510e42d6174a92215 (diff) | |
download | guile-cf08dbdc189f0005cab6f2ec7b23ed9d150ec43d.tar.gz |
Associate #:replace info with modules, not variables
* doc/ref/api-modules.texi (Creating Guile Modules): Document
#:re-export-and-replace.
* module/ice-9/boot-9.scm (module-replacements): New module field.
(make-module, make-autoload-interface): Initialize replacements to an
empty hash table.
(resolve-interface): Propagate replacement info when making custom
interfaces.
(define-module): Parse a #:re-export-and-replace keyword arg.
(define-module*): Handle #:re-export-and-replace.
(module-export!, module-re-export!): Add a keyword arg to indicate
whether to replace or not.
(module-replace!): Call module-export! with #:replace? #t.
(duplicate-handlers): Update replace duplicate handler to look for
replacement info on the interfaces.
* module/srfi/srfi-18.scm (srfi):
* module/srfi/srfi-34.scm (srfi): Update to #:re-export-and-replace
raise-continuable as raise.
Diffstat (limited to 'doc/ref/api-modules.texi')
-rw-r--r-- | doc/ref/api-modules.texi | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/ref/api-modules.texi b/doc/ref/api-modules.texi index d73df4641..23343785d 100644 --- a/doc/ref/api-modules.texi +++ b/doc/ref/api-modules.texi @@ -354,6 +354,11 @@ in the module body. The @code{#:duplicates} (see below) provides fine-grain control about duplicate binding handling on the module-user side. +@item #:re-export-and-replace @var{list} +@cindex re-export-and-replace +Like @code{#:re-export}, but also marking the bindings as replacements +in the sense of @code{#:replace}. + @item #:version @var{list} @cindex module version Specify a version for the module in the form of @var{list}, a list of |