marekjm / viuavm

Parallel virtual machine designed to reliably run massively concurrent programs
https://viuavm.org/
GNU General Public License v3.0
71 stars 11 forks source link

Move semantics for Vector instructions #127

Closed marekjm closed 8 years ago

marekjm commented 8 years ago

Implement move semantics for instructions that operate on Vector objects. Example: vinsert should move the object from a register into the Vector, not copy it. The rationale is, you can easily implement pass-by-copy using pass-by-move, but not the other way around (nope, pointers aren't the answer).