feat(stdlib): format all value types and expose handle identity members

- Add read-only FunctionRef.module/name and PluginHandle.plugin/export
  members; PluginHandle.id stays private (ADR-0029).
- Extend stdlib/format.mq.md to Formula/Code/FunctionRef/PluginHandle/
  Memory/Resource/Unit, with UTF-8 byte length for Code.
- Fix two-digit ordered-list body indentation so arms 10+ stay inside their
  branch (they were previously top-level statements).
- Extend stdlib demo to Formula/Code/FunctionRef and assert all three
  io.写值/打印 pairs match byte-for-byte.
- Add runtime member observation test, ADR-0029, spec/status/changelog/evidence.

Gate: fmt, clippy -D warnings, 416 tests passed.
This commit is contained in:
cflmy committed 2026-11-20 21:57:04 +08:00
1 parent 1377af1601
commit e119727c5d
14 files changed
+334 -15

No files matched your search

+2 -2
View File
@@ -102,8 +102,8 @@ executes anything.
* **Bundled stdlib + print prototype (RFC-CM CM-A07/A10)** — offline
`stdlib/` with explicit `std:io`/`std:format`/`std:text` imports, SHA-256
digest verification, Analysis identity and a frozen-CLI closure test; the
`.mq.md` print chain matches builtin `打印` for the covered values, while
`打印` remains the default builtin (ADR-0027/0028).
`.mq.md` print chain matches builtin `打印` for all 15 value types, while `打印` remains the default
builtin (ADR-0027/0028/0029).
* **Resource streams (RFC-CM CM-A06)** — opaque host-issued `Resource` handles;
`resource.open/read/write/close` transfer bytes through `Memory`; stdout
write in pure/project, granted project-file read, and buffered project-file