← board

TypeInfo(T) for every type, not just enums

Today

TypeInfo(X) accepts ENUM types only — deliberately: we emit one blob per enum type (name, count, member names) and refused everything else rather than hand back a blob whose layout is ours while pretending it is FPC's. That refusal was right, and it stays right; what changes is that WE now supply the typinfo unit that reads the blobs ([[feature-typinfo-facade-unit]]), so our layout is fine and the only thing missing is the blobs themselves.

The work

Emit a per-TYPE info blob for the kinds real code asks about:

Interned per type, addressed like the enum blobs (data-ref sentinel patched at link time), so the cost is paid once and only by programs that ask.

Gate

make test + self-host byte-identical; a b-test that reads TypeInfo of each kind through the facade unit; fpjson suite stays green.