Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/omega-mv/blob/main/seed/omc/om2/s4/v-trap-get.om # 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 Sign in to star 1 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `omega-mv / seed / omc / om2 / s4 / v-trap-get.om` 13 lines ยท 290 bytes Raw Blame History 1 note S4: a number index into an unsized view is checked at run time (spec 4, 6): get v 3 on a view of 2 note 3 elements traps 3 (exit 103); it is neither error 21 nor unchecked. 3 om2 4 fn g v view ulong * to ulong 5 ret get v 3 6 end 7 fn main to int 8 a = new ulong 3 7 9 if eq g a 7 10 ret 1 11 end 12 ret 0 13 end