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.
37 lines
1.6 KiB
Plaintext
37 lines
1.6 KiB
Plaintext
// E6BR-4 (MIXED pack source — the trap cell) — a pack-closure param-impl source
|
|
// `Closure(*Box, ..$args) -> $R` mixes a CONCRETE fixed prefix (`*Box`) with pack
|
|
// metadata (`..$args`, `$R`). The reconciled choke-point decides template-vs-author
|
|
// AT THE LEAF: `*Box` is resolved SOURCE-AWARE through `resolveCompound` while
|
|
// `..$args`/`$R` stay pack metadata via `PackResolver` — NOT a top-level
|
|
// "contains-unbound → no-author wrapper" router, which would send `*Box` down the
|
|
// global last-wins path (the trap both engines flagged). With two flat `Box`
|
|
// authors and none own, the concrete `*Box` prefix is a genuine collision and the
|
|
// build exits 1 — proving the prefix IS routed source-aware (it caught the
|
|
// ambiguity) while the pack parts did not spuriously error.
|
|
//
|
|
// Fail-before (pre-E6BR-4): the wrapped/pack source fell to the no-author
|
|
// `type_bridge.resolveTemplateSignatureType` wrapper (global last-wins, no
|
|
// diagnostic), so the `*Box` collision registered silently. Protects the pure-pack
|
|
// `Closure(..$args) -> $R` bridge in `library/modules/ffi/objc_block.sx` (0504 /
|
|
// 1302 / 1304 stay byte-identical), whose single author keeps the prefix-free path.
|
|
|
|
#import "modules/std.sx";
|
|
#import "0829-packs-param-impl-mixed-pack-source-ambiguous/a.sx";
|
|
#import "0829-packs-param-impl-mixed-pack-source-ambiguous/b.sx";
|
|
|
|
Block :: struct { tag: i32; }
|
|
|
|
Sink :: protocol(T: Type) {
|
|
convert :: () -> T;
|
|
}
|
|
|
|
impl Sink(Block) for Closure(*Box, ..$args) -> $R {
|
|
convert :: (self: Closure(*Box, ..$args) -> $R) -> Block {
|
|
.{ tag = 0 }
|
|
}
|
|
}
|
|
|
|
main :: () -> i32 {
|
|
0
|
|
}
|