spell an array bound as an expression

It went to fmt-c unwalked, so a bound named CHUNK-AREA kept its dash
while the same name in an expression became CHUNK_AREA.

Fixes #50.
This commit is contained in:
2026-10-09 15:56:32 +03:00
parent b0dd2d9f94
commit 82629867c1
2 changed files with 6 additions and 1 deletions

View File

@@ -316,7 +316,7 @@ forms, and what remains."
(match form
(('¤ . array-type)
(if (array-bound? form)
`(%array ,(walk-type (array-element-type form)) ,(last array-type))
`(%array ,(walk-type (array-element-type form)) ,(walk-expr (last array-type)))
;; sugar for pointer... Do we really need it? Guess why not,
;; it's a strong semantic cue
`(%array ,(walk-type (array-element-type form)))))