[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] export/rename
From: |
felix . winkelmann |
Subject: |
[PATCH] export/rename |
Date: |
Mon, 02 Oct 2023 18:31:44 +0200 |
This patch adds a new special form to explicitly export renamed bindings
from a module:
(export/rename (OLD NEW) ...)
This is mainly useful for supporting R7RS renaming export specifiers (not
done yet).
I wanted first to apply the renamings when creating the module structure,
but it turned out to be easier at the import stage, as renaming is done
there anyway (for renamed import) and taking care of all the cross-references
and indirect imports is rather hairy. My basic test cases seem to work
as intended. There may of course be more corner cases that I have overlooked.
felix
0001-add-export-rename-for-renaming-identifiers-on-export.patch
Description: Text document
- [PATCH] export/rename,
felix . winkelmann <=