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_false.om

12 lines · 245 bytes Raw Blame History
1note init_false.om: a bool field set false by new reads back false; true would take the first branch.
2struct W a uint f bool end
3fn main to uint
4w = new W 5 false
5if eq get w f true
6ret 1
7end
8if eq get w f false
9ret add get w a 20
10end
11ret 2
12end