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 / omc / om2 / s4 / x-bad-abs.om
| 1 | note S4 with S3 abstract types: an exported entry, not the last fn, may not take an abstract type (error 7). |
| 2 | om2 |
| 3 | abstract dup32 ulong |
| 4 | fn dup32mk x uint to dup32 |
| 5 | ret seal dup32 or shl ulong x 32 ulong x |
| 6 | end |
| 7 | export fn e d dup32 to ulong |
| 8 | ret open d |
| 9 | end |
| 10 | fn last a ulong to ulong |
| 11 | ret a |
| 12 | end |