interplane.Get Omega
Read in your language

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

branch main Branches Tags History

omega-mv / si / front-door / tests / omc / examples / count_err07_struct.om

11 lines · 205 bytes Raw Blame History
1note count_err07_struct: A must name an array; a struct (or a layout) is error 7
2om2
3struct P a uint b uint end
4fn f p view P to ulong
5ret count p 0 1 10
6end
7fn main to int
8p = new P 1 2
9r = f p
10ret 0
11end