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 / seed / omc / tests / struct-bool / init_true.om

9 lines · 208 bytes Raw Blame History
1note init_true.om: a bool field set true by new reads back true and the neighbour reads back 5.
2struct W a uint f bool end
3fn main to uint
4w = new W 5 true
5if eq get w f true
6ret add get w a 10
7end
8ret 1
9end