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 / si / mcp / data / examples / structs.om

9 lines · 229 bytes Raw Blame History
1note a struct on the stack, field get and put, sizeof and offsetof
2struct Pt x long y long end
3fn main to int
4p = new Pt 3 4
5put p x add get p x 10
6s = add get p x get p y
7z = add sizeof Pt offsetof Pt y
8ret int add s long z
9end