From b8030b86bc884d5f89d9a22fc61f1d674f2c1307 Mon Sep 17 00:00:00 2001 From: alex-eg Date: Fri, 9 Oct 2026 18:19:00 +0300 Subject: [PATCH] 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 --- src/ores.sex | 3 +-- src/shape.sex | 4 +--- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/ores.sex b/src/ores.sex index e421409..45445be 100644 --- a/src/ores.sex +++ b/src/ores.sex @@ -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 diff --git a/src/shape.sex b/src/shape.sex index dbb9210..05b03f0 100644 --- a/src/shape.sex +++ b/src/shape.sex @@ -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))