Files
sx/examples/1426-ffi-jni-extern-class.sx
agra 811a280517 refactor(ffi-linkage): Phase 9.3 — purge 'foreign' from comments (src caps + examples + docs)
src/: ~21 capital-Foreign comments the case-sensitive verify grep missed
(Foreign-class→Runtime-class, Foreign path→Runtime path, Foreign decls→Extern decls,
FOREIGN function→extern function) across calls/inst/ffi_objc/jni_descriptor/emit_llvm/
c_import/lower.*/ops. src 'foreign' now = ONLY the hash_foreign token + 4 rejection
messages (9.0-delete targets). examples/*.sx comments → extern/runtime-class (1219
stdout regen; KEPT 1176). docs/inline-asm-design + debugger purged. Comments only —
no build impact. 9.0 ratified: DELETE hash_foreign token next.
2026-06-15 10:52:56 +03:00

16 lines
507 B
Plaintext

// Phase 3 (FFI-linkage) — postfix `extern` on a `#jni_class` aggregate, the
// new spelling of the legacy prefix `#jni_class(…) extern` import. Parse-only
// on macOS (no JVM at runtime), mirroring 1412's runtime-class reference.
// View :: #jni_class("…") extern { … } == View :: #jni_class(…) extern("…") { … }
#import "modules/std.sx";
View :: #jni_class("android/view/View") extern {
getId :: (self: *Self) -> i32;
}
main :: () -> i32 {
print("parse-only ok\n");
0
}