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.om

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