make shape-cell private again

A pub record may point to a private one now (sex#57); its importers
are handed the declaration. natfloat stays pub: a mineral holds one by
value, so importers need its size.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-09 18:19:00 +03:00
parent f82d2499c6
commit b8030b86bc
2 changed files with 2 additions and 5 deletions

View File

@@ -63,8 +63,7 @@
(define DIST-NARROWGAUSSIAN 5)
(define DIST-STRONGERINVEXP 6)
;; TODO sex#57: make this private again once a pub record can use a
;; private type.
;;; pub because a mineral holds one, and its importers need the size
(pub record natfloat ((dist int) (avg float) (var float)))
;;; A mineral is one code with an ore map. Its map is made with the

View File

@@ -100,9 +100,7 @@
;;; NaturalShape -----------------------------------------------------
;; TODO sex#57: make this private again once a pub record can use a
;; private type.
(pub record shape-cell ((x int) (z int) (open [bool 4]) (live bool)))
(record shape-cell ((x int) (z int) (open [bool 4]) (live bool)))
(pub record natural-shape
((rng (* lcg))