[(* T) N] fields break in importers #56

Closed
opened 2026-10-08 18:43:14 +02:00 by alex-eg · 0 comments
Owner

A pub record field (noises [(* simplex-sum) 32]) compiles in its own
module but not when pasted into an importer:
Error: pointer chains are written flat, as (* * T), not nested: ((* simplex-sum) MAX_STRATA). The message points at the wrong thing;
[* simplex-sum MAX_STRATA] works, while a local
(var names [(* const char) 6]) is fine either way.


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

A pub record field `(noises [(* simplex-sum) 32])` compiles in its own module but not when pasted into an importer: `Error: pointer chains are written flat, as (* * T), not nested: ((* simplex-sum) MAX_STRATA)`. The message points at the wrong thing; `[* simplex-sum MAX_STRATA]` works, while a local `(var names [(* const char) 6])` is fine either way. --- 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:14 +02:00
Sign in to join this conversation.