Standard library / C FFI · on the one-page reference
C FFI
Experimental — strings and scalars only cross the boundary (no structs, callbacks, or arrays yet).
| API | Notes |
|---|---|
declare function name(args): T; | calls a C function directly (extern function also works) |
// @link m · // @link ./shim.o | link a library or object |
| string & scalar marshaling | string params/returns and numeric scalars cross the boundary |