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

14 lines · 437 bytes Raw Blame History
1note SPDX-License-Identifier: Apache-2.0
2note OM-1 TWIN of inline-new-plain.om for the pinned compiler 734f0a39: same stdout.
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.
5note OM-1 unit: this line replaces the om2 line
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