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 / qualification / om2 / sec / s3s4 / inline-new-om1.om
| 1 | note SPDX-License-Identifier: Apache-2.0 |
| 2 | note OM-1 TWIN of inline-new-plain.om for the pinned compiler 734f0a39: same stdout. |
| 3 | note Contract section 4 line 94: an inline function must contain no new (error 9). The same text |
| 4 | note without inline (inline-new-plain.om) is accepted and prints 3. |
| 5 | note OM-1 unit: this line replaces the om2 line |
| 6 | fn f a ulong to ulong |
| 7 | b = new ulong 4 0 |
| 8 | put b 0 a |
| 9 | ret get b 0 |
| 10 | end |
| 11 | fn main to int |
| 12 | pu f 3 |
| 13 | ret 0 |
| 14 | end |