Hacker News new | past | comments | ask | show | jobs | submit login

Yes, I think how Forth and PostScript does that is good, compared to the other ways (there are other good things about Forth, too). And then, in assembly language, it may depend what instruction set is used and how call frames are organized; Glulx allows only one return value, and same with Z-machine code.



There's a proposal to support multiple value returns in WebAssembly!

Multi-Value All the Wasm (hacks.mozilla.org)

https://news.ycombinator.com/item?id=21596965

https://hacks.mozilla.org/2019/11/multi-value-all-the-wasm/




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: