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.om
| 1 | note SPDX-License-Identifier: Apache-2.0 |
| 2 | note Contract section 4 line 94: an inline function must contain no new (error 9). The same text |
| 3 | note without inline (inline-new-plain.om) is accepted and prints 3. |
| 4 | om2 |
| 5 | fn f a ulong to ulong inline |
| 6 | b = new ulong 4 0 |
| 7 | put b 0 a |
| 8 | ret get b 0 |
| 9 | end |
| 10 | fn main to int |
| 11 | pu f 3 |
| 12 | ret 0 |
| 13 | end |