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 / qualification / om2 / sec / s3s4 / inline-new-plain.om

14 lines · 402 bytes Raw Blame History
1note SPDX-License-Identifier: Apache-2.0
2note Control for inline-new.om with every inline removed: accepted, runs (section 4 line 97).
3note Contract section 4 line 94: an inline function must contain no new (error 9). The same text
4note without inline (inline-new-plain.om) is accepted and prints 3.
5om2
6fn f a ulong to ulong
7b = new ulong 4 0
8put b 0 a
9ret get b 0
10end
11fn main to int
12pu f 3
13ret 0
14end