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 / runs / p-emptytext-trap.om
| 1 | om2 |
| 2 | note runtime indexing of an empty text (variable index 0) traps 3 (chk.bounds on the 0-length slice, exit 103), matching omc (ledger L1144). |
| 3 | text empty_name "" |
| 4 | |
| 5 | fn read_at idx ulong to int |
| 6 | ret int get empty_name idx |
| 7 | end |
| 8 | |
| 9 | fn main to int |
| 10 | ret read_at 0 |
| 11 | end |