- objc.sx, objc_block.sx (from std/) + sdl3/opengl/raylib/stb/stb_truetype/ wasm vendor bindings (from modules/ root) -> modules/ffi/ - std/uikit.sx deleted: platform/uikit.sx already declares UIApplicationMain and imports objc; '#framework "UIKit"' cannot live in a file imported on macOS targets (unconditional link directive, UIKit is iOS-only), so the three iOS-only examples carry the 3-line glue inline. 1607/1608/1616 also un-rotted (dead ns_string -> 'xx "..."' Into conversions, callconv(.c) msgSend fn-ptrs) — all three build for ios-sim/ios again. - math/math.sx -> math/scalar.sx; one spelling '#import "modules/math"' everywhere (4 pinned IR snapshots regenerated: dir import adds Vec2/Mat4 to the type tables). - compiler.sx -> build.sx (imports, CLAUDE.md bundling table, specs.md). - testpkg/ + test_c.sx -> tests/fixtures/ (resolve CWD-relative from repo root, same as vendors/). - library-internal imports use full modules/... paths (std.sx tail, platform/bundle.sx, fixtures).
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: s32; }
|
|
|
|
Sink :: protocol(T: Type) {
|
|
convert :: () -> T;
|
|
}
|
|
|
|
impl Sink(Block) for Closure(*Box, ..$args) -> $R {
|
|
convert :: (self: Closure(*Box, ..$args) -> $R) -> Block {
|
|
.{ tag = 0 }
|
|
}
|
|
}
|
|
|
|
main :: () -> s32 {
|
|
0
|
|
}
|