Surface rename of the signed integer family: s1..s64 become i1..i64
(u1..u64, usize, isize unchanged). 'string' keeps the s-prefix arm in
name classification; width parsing moves to the i-prefix arm next to
isize.
Internal TypeId tags follow the surface (.s8/.s16/.s32/.s64 ->
.i8/.i16/.i32/.i64), as do mono-key mangle fragments (ptr_i64,
tu_i64_bool) and all display/diagnostic formatting (i{d}).
Migrated in the same sweep: stdlib + examples + issue repros + FFI C
companions (shared symbol names like ffi_id_i64), expected
stdout/stderr/ir snapshots, specs.md, readme.md, CLAUDE.md/AGENTS.md,
implementation_plan.md, docs/, issue writeups. Vendored stb_image and
historical flow state left untouched.
zig build test: 426/426; examples suite: 595/595.
44 lines
2.1 KiB
Plaintext
44 lines
2.1 KiB
Plaintext
error: pack 'xs' has no runtime value — a pack is comptime-only and can't be used as a value here
|
|
--> examples/0536-packs-pack-as-value.sx:14:40
|
|
|
|
|
14 | storage :: (..xs: Show) -> void { y := xs; _ = y; } // A: store
|
|
| ^^
|
|
|
|
help: to store it, materialize a tuple: `(..xs)`
|
|
|
|
|
14 | storage :: (..xs: Show) -> void { y := xs; _ = y; } // A: store
|
|
| ^^
|
|
|
|
error: pack 'xs' has no runtime value — a pack is comptime-only and can't be used as a value here
|
|
--> examples/0536-packs-pack-as-value.sx:15:40
|
|
|
|
|
15 | call :: (..xs: Show) -> void { sink(xs); } // B: pass to a call
|
|
| ^^
|
|
|
|
help: materialize a tuple `(..xs)` to store it, or `xx xs` to convert it to an expected `[]Any`/`[]P` slice
|
|
|
|
|
15 | call :: (..xs: Show) -> void { sink(xs); } // B: pass to a call
|
|
| ^^
|
|
|
|
error: pack 'xs' has no runtime value — a pack is comptime-only and can't be used as a value here
|
|
--> examples/0536-packs-pack-as-value.sx:16:42
|
|
|
|
|
16 | ret :: (..xs: Show) -> i64 { return xs; } // C: return
|
|
| ^^
|
|
|
|
help: to return it, return a tuple `(..xs)` and make the return type that tuple
|
|
|
|
|
16 | ret :: (..xs: Show) -> i64 { return xs; } // C: return
|
|
| ^^
|
|
|
|
error: pack 'xs' has no runtime value — a pack is comptime-only and can't be used as a value here
|
|
--> examples/0536-packs-pack-as-value.sx:17:39
|
|
|
|
|
17 | iter :: (..xs: Show) -> void { for xs (x) { _ = x; } } // D: runtime iterate
|
|
| ^^
|
|
|
|
help: to iterate at comptime use `inline for xs (x)` (or `inline for 0..xs.len (i)` for the index); for a runtime loop declare it as `..xs: []P` (a protocol slice) instead of a pack
|
|
|
|
|
17 | iter :: (..xs: Show) -> void { for xs (x) { _ = x; } } // D: runtime iterate
|
|
| ^^
|