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
omega-mv / si / editors / vscode / test / fixtures / field-call.om
| 1 | note An OM-1 unit may name a function field: only a layout makes field a keyword. |
| 2 | global buf uchar 64 |
| 3 | fn field a ulong to void |
| 4 | put buf a 7 |
| 5 | end |
| 6 | fn main to int |
| 7 | b = ulong 1 |
| 8 | field add b 2 |
| 9 | field 4 |
| 10 | if ne get buf 3 7 |
| 11 | ret 1 |
| 12 | end |
| 13 | if ne get buf 4 7 |
| 14 | ret 2 |
| 15 | end |
| 16 | ret 0 |
| 17 | end |