3 ms·
In my understanding, Ada allows you to return unsized values, but it's generally implemented via a secondary stack.
by steveklabnik 2y ago
In my understanding, Ada allows you to return unsized values, but it's generally implemented via a secondary stack.
- cyco130 2y agoGold mine! Didn't know about to concept, thanks.
- steveklabnik 2y agoYou're welcome! You also might be interested in this old RFC for Rust, which described something similar https://github.com/PoignardAzur/placement-by-return/blob/placement-by-return/text/0000-placement-by-return.md#did-you-say-i-can-return-unsized-types https://github.com/PoignardAzur/placement-by-return/blob/pla...
- cyco130 2y agoAnd now I’m proud because that’s pretty much the exact idea I tried to pitch at the great grandparent.