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 / effects / cases / net.om

9 lines · 160 bytes Raw Blame History
1note net: opens and closes one TCP socket; a policy without net must refuse it.
2fn main to int
3s = socknew 2 1 0
4if lt s 0
5ret 1
6end
7c = fclose int s
8ret 0
9end