smalltalk: String>>format: + universal printOn: + 18 tests
Some checks failed
Test, Build, and Deploy / test-build-deploy (push) Has been cancelled

This commit is contained in:
2026-04-25 13:11:17 +00:00
parent 15da694c0d
commit fa600442d6
4 changed files with 242 additions and 3 deletions

View File

@@ -479,8 +479,9 @@
(st-parse-method "isEmpty ^ self size = 0"))
(st-class-add-method! "SequenceableCollection" "notEmpty"
(st-parse-method "notEmpty ^ self size > 0"))
(st-class-add-method! "SequenceableCollection" "asString"
(st-parse-method "asString ^ self printString"))
;; (no asString here — Symbol/String have their own primitive
;; impls; SequenceableCollection-level fallback would overwrite
;; the bare-name-for-Symbol behaviour.)
;; ── HashedCollection / Set / Dictionary ──
;; Implemented as user instances with array-backed storage. Sets
;; use a single `array` ivar; Dictionaries use parallel `keys`/