omega-bridge
Omega-first language interoperability: checked conversion backends and native language bindings
Brought by drakestapleton
omega-bridge / tests / native / big.om
| 1 | fn big n ulong to ulong |
| 2 | x = new ulong 500000 0 |
| 3 | put x 499999 n |
| 4 | put x 0 add n 1 |
| 5 | if eq n 0 |
| 6 | trap 3 |
| 7 | end |
| 8 | ret add get x 0 get x 499999 |
| 9 | end |