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

Return type of foreign functions #93

Closed marekjm closed 9 years ago

marekjm commented 9 years ago

Return type of foreign functions and methods should be changed from Type* to void.

The only communication channels between foreign code and the VM are registers and exceptions, and return values from foreign code are discarded there is no point in requiring to have every C++ function callable by viua end with return nullptr;.