interplane.Get Omega
Read in your language

omega-mv

Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance.

Brought by drakestapleton

branch main Branches Tags History

omega-mv / si / editors / vscode / test / fixtures / field-call.om

17 lines · 258 bytes Raw Blame History
1note An OM-1 unit may name a function field: only a layout makes field a keyword.
2global buf uchar 64
3fn field a ulong to void
4put buf a 7
5end
6fn main to int
7b = ulong 1
8field add b 2
9field 4
10if ne get buf 3 7
11ret 1
12end
13if ne get buf 4 7
14ret 2
15end
16ret 0
17end