← All examples

Std op path

Std marks everything bare.optional, so its word operators may carry std:: as std::pow has since 2026-10-02.

std_op_path.zg
# std marks everything `bare.optional` (owner, 2026-10-06), so its word operators may carry `std::`
# as `std::pow` has since 2026-10-02.

MAIN {
    let 'a': int32 = 2 std::plus 3 std::times 4;
    let 'b': int32 = 7 std::div.floor 2;
    let 'c': uint32 = 1 std::shl 3;
    std::print.useful['a', " ", 'b', " ", 'c', newln];
}
Output
14 3 8