interplane.Get Omega
Read in your language

omega-harness

Agent skills for operating, encoding and communicating in Omega (.om) and the AIEN repositories

Brought by drakestapleton

branch main Branches Tags History

omega-harness / skills / omega-encoding / examples / pitfall_shared_name.om

14 lines · 341 bytes Raw Blame History
1note Units concatenated into one input share one namespace: the local sh below names the
2note global array sh of the unit above it, so the assignment is a type error (error 7).
3global sh uchar 4
4fn seta to void
5put sh 0 uchar 5
6end
7fn helpb x ulong to ulong
8sh = add x 1
9ret sh
10end
11fn main to int
12seta
13ret int add ulong get sh 0 helpb 1
14end