1
0
forked from alex-eg/sex

report a module's macro call failing for other than its own names

Reading a module's interface dropped any toplevel call that raised, not
only one asking after a declaration of the module's, which no importer
has yet. Lookups now tell which names they missed, and only those failures
give importers nothing.
This commit is contained in:
2026-10-27 22:41:06 +03:00
parent d890080103
commit 724f4dd3e9
4 changed files with 64 additions and 14 deletions

View File

@@ -0,0 +1,8 @@
;;; A toplevel macro call failing for what it is, not for asking after a
;;; name declared here: an importer is told so, as this module is
(defmacro (boom)
(error "nope"))
(pub fn fine () int (return 1))
(boom)