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 / o-bad-view.om
| 1 | note S4: an out parameter takes a writable array; a view passed to it is error 20. |
| 2 | om2 |
| 3 | fn f r out uchar 4 to void |
| 4 | put r 0 1 |
| 5 | end |
| 6 | fn g v view uchar 4 to void |
| 7 | f v |
| 8 | end |
| 9 | fn main to int |
| 10 | a = new uchar 4 0 |
| 11 | g a |
| 12 | ret 0 |
| 13 | end |