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 / ng / front / cases / nom_struct_put_idx_only.om
| 1 | note Struct put: a good value and a run-time index one past the field trap 3 (exit 103). |
| 2 | struct H v uint 4 next ulong end |
| 3 | fn five to ulong |
| 4 | ret 4 |
| 5 | end |
| 6 | fn main to int |
| 7 | h = new H 1 2 |
| 8 | put h v five 7 |
| 9 | ret 0 |
| 10 | end |