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
omega-mv / seed / effects / cases / net.om
| 1 | note net: opens and closes one TCP socket; a policy without net must refuse it. |
| 2 | fn main to int |
| 3 | s = socknew 2 1 0 |
| 4 | if lt s 0 |
| 5 | ret 1 |
| 6 | end |
| 7 | c = fclose int s |
| 8 | ret 0 |
| 9 | end |