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 / seed / omc / om2 / s4 / v-write.om
| 1 | note S4: write and read on unsized arrays inside the count: prints ABC and a newline (exit 0). |
| 2 | om2 |
| 3 | fn g v view uchar * to void |
| 4 | w = write 1 v 0 len v |
| 5 | end |
| 6 | fn h e edit uchar * to void |
| 7 | for i ulong len e |
| 8 | put e i add uchar i 65 |
| 9 | end |
| 10 | put e sub len e 1 10 |
| 11 | g e |
| 12 | end |
| 13 | fn main to int |
| 14 | a = new uchar 4 0 |
| 15 | h a |
| 16 | ret 0 |
| 17 | end |