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 / tests / quantity / contexts.om

26 lines · 283 bytes Raw Blame History
1global g qty 4
2fn identity x qty to qty
3ret x
4end
5fn literal to qty
6ret 5
7end
8fn main to int
9a = new qty 4 0
10put a 1 5
11put g 1 5
12q = qty 1
13if ne get a q qty 5
14ret 1
15end
16if ne get g q qty 5
17ret 2
18end
19if ne identity 5 literal
20ret 3
21end
22if ne identity qty 5 literal
23ret 4
24end
25ret 0
26end