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 / apps / aienos-site / om / omega-reference / vendor / examples / mistake_param_length.om
| 1 | note mistake_param_length: a sized array parameter takes exactly that length; use OM-2 view T * for any length |
| 2 | fn f a view uchar 4 to uchar |
| 3 | ret get a 0 |
| 4 | end |
| 5 | fn main to int |
| 6 | b = new uchar 8 0 |
| 7 | ret int f b |
| 8 | end |