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 / s4 / v-trap-get.om

13 lines · 290 bytes Raw Blame History
1note S4: a number index into an unsized view is checked at run time (spec 4, 6): get v 3 on a view of
2note 3 elements traps 3 (exit 103); it is neither error 21 nor unchecked.
3om2
4fn g v view ulong * to ulong
5ret get v 3
6end
7fn main to int
8a = new ulong 3 7
9if eq g a 7
10ret 1
11end
12ret 0
13end