Add encapsulation, sum types, type constraints and all the required machinery. Also -> threading macro #64

Merged
pkulev merged 40 commits from static-dispatch into main 2026-10-19 17:07:45 +02:00
2 changed files with 4 additions and 5 deletions
Showing only changes of commit 8f7b26eafa - Show all commits

View File

@@ -109,6 +109,7 @@ SEX_TEST_PROGRAMS = c11 \
closures \ closures \
comments \ comments \
compound-literals \ compound-literals \
encapsulation \
feature-flags \ feature-flags \
features \ features \
fixpoint \ fixpoint \
@@ -126,8 +127,7 @@ SEX_TEST_PROGRAMS = c11 \
type-shapes \ type-shapes \
unicode \ unicode \
unnamed-params \ unnamed-params \
wildcards \ wildcards
worked-example
# Multi-module linking is checked end to end; see tests/modules/Makefile. # Multi-module linking is checked end to end; see tests/modules/Makefile.
check-modules: sexc check-modules: sexc

View File

@@ -3,9 +3,8 @@
"-5") "-5")
(return 0) (return 0)
;;; The worked example from Encapsulation.org, kept here so it stays ;;; A recursive sum, an inherent method on it, and a spec realized for
;;; true: a recursive sum, an inherent method on it, and a spec ;;; it: every layer of encapsulation in one program, built at once.
;;; realized for it, which is every layer that is built at once.
(include stdio.h) (include stdio.h)