objc

module std::processsource

The running process's environment.

arguments is a lang item (LANGUAGE_SPEC.md section 6.1a) at the canonical path std::process::arguments: this declaration provides the signature, and the compiler supplies the value. Natively the program's entry wrapper captures argc/argv at startup; under alloyc run the interpreter serves the arguments following the program path. In both cases the first argument is the program's own path, matching C.

fn argumentssource

exp fn arguments() -> &[&[u8]]

The command line, one borrowed byte slice per argument, valid for the whole program run. Calls are replaced by the compiler; this body never executes. Unavailable at compile time (section 7.2).

fn targetsource

exp fn target() -> &[u8]

The platform the program is built for, linux-x86_64, linux-aarch64, windows-x86_64, macos-arm64, macos-x86_64, wasi-wasm32 or web-wasm32 (section 6.4). The compiler replaces each call with the build's target, so an if comparing it with a string literal builds only the branch taken and the other may name what the target lacks.