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 / seed / omc / om2 / s1 / kw-long-field.om

17 lines · 421 bytes Raw Blame History
1note S1: a struct field of 9..63 bytes whose first 8 bytes spell a keyword (continue_x) is a field name,
2note not the keyword, and is told apart in full from continue_y. Exit 0, else the failing check's number.
3struct S continue_x ulong continue_y ulong end
4fn main to int
5s = new S 3 4
6if ne get s continue_x 3
7ret 1
8end
9put s continue_y 5
10if ne get s continue_y 5
11ret 2
12end
13if ne get s continue_x 3
14ret 3
15end
16ret 0
17end