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

17 lines · 302 bytes Raw Blame History
1note S4: write and read on unsized arrays inside the count: prints ABC and a newline (exit 0).
2om2
3fn g v view uchar * to void
4w = write 1 v 0 len v
5end
6fn h e edit uchar * to void
7for i ulong len e
8put e i add uchar i 65
9end
10put e sub len e 1 10
11g e
12end
13fn main to int
14a = new uchar 4 0
15h a
16ret 0
17end