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 / si / harness / examples / mistake_om2_part_global.om
| 1 | note mistake_om2_part_global: part of a global is refused like any global argument; slice a local array |
| 2 | om2 |
| 3 | global g uchar 8 |
| 4 | fn f a view uchar * to ulong |
| 5 | ret len a |
| 6 | end |
| 7 | fn main to int |
| 8 | ret int f part g 0 2 |
| 9 | end |