interplane.Get Omega
Read in your language

omega-bridge

Omega-first language interoperability: checked conversion backends and native language bindings

Brought by drakestapleton

branch main Branches Tags History

omega-bridge / tests / native / fill.om

10 lines · 194 bytes Raw Blame History
1note writes 11 and 22 into buf, traps 3 when k is 1, else writes 33 and returns 3
2fn fill buf edit ulong 4 k ulong to ulong
3put buf 0 11
4put buf 1 22
5if eq k 1
6trap 3
7end
8put buf 2 33
9ret 3
10end