omega-bridge
Omega-first language interoperability: checked conversion backends and native language bindings
Brought by drakestapleton
omega-bridge / tests / native / g1 / calc.om
| 1 | fn calc i0 ulong i1 ulong to ulong |
| 2 | v = new ulong 5 0 |
| 3 | put v 0 i0 |
| 4 | put v 1 i1 |
| 5 | put v 2 add get v 0 get v 1 |
| 6 | put v 3 sub get v 0 get v 1 |
| 7 | put v 4 mul get v 2 get v 3 |
| 8 | ret get v 4 |
| 9 | end |