RoyalIcing / Orb

Write WebAssembly with Elixir
https://useorb.dev
BSD 3-Clause "New" or "Revised" License
174 stars 1 forks source link

Allow returning tuple #20

Closed RoyalIcing closed 1 month ago

RoyalIcing commented 4 months ago

Instead of:

defw xyz(), {F32, F32, F32} do
  0.0
  0.0
  0.0
end

Write:

defw xyz(), {F32, F32, F32} do
  {0.0, 0.0, 0.0}
end

This will require removing all usage of tuples in Orb internal, replacing them with structs like Orb.Instruction or new ones for say Orb.Nop or Orb.Control.Unreachable

RoyalIcing commented 1 month ago

This is now possible.