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-write.om

12 lines · 301 bytes Raw Blame History
1note S4: write keeps its slice check on an unsized view (spec 6): off 2, n 3 on a count of 4 traps 3
2note before the call (exit 103) after the first write (off 1, n 3) printed AAA.
3om2
4fn g v view uchar * to void
5w = write 1 v 1 3
6w = write 1 v 2 3
7end
8fn main to int
9a = new uchar 4 65
10g a
11ret 0
12end