An import doesn't bring the types its interface needs #58

Closed
opened 2026-10-08 18:43:15 +02:00 by alex-eg · 1 comment
Owner

Module save takes a (* region-maps) from module maps. Importing
save pastes its prototypes but not region-maps, so every importer
has to import maps itself, and before save:

save.sex:284:52: error: unknown type name 'region_maps'

vsmv.sex now imports eight modules in dependency order to use three.
Imports are at least idempotent (a diamond works).


Found with sexc dfafe8b while building vs-map-viewer (from its Sex-field-notes.org).

Module `save` takes a `(* region-maps)` from module `maps`. Importing `save` pastes its prototypes but not `region-maps`, so every importer has to import `maps` itself, and before `save`: ``` save.sex:284:52: error: unknown type name 'region_maps' ``` `vsmv.sex` now imports eight modules in dependency order to use three. Imports are at least idempotent (a diamond works). --- Found with sexc `dfafe8b` while building vs-map-viewer (from its `Sex-field-notes.org`).
alex-eg added the bug label 2026-10-08 18:43:15 +02:00
Author
Owner

Fixed by b998d29.

Fixed by b998d29.
Sign in to join this conversation.