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_idx_trap.om
| 1 | note Struct array field: a run-time index one past the field traps 3 (exit 103), not a neighbouring cell. |
| 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 next 99 |
| 9 | ret int get h v five |
| 10 | end |