Custom made functions.

rVM now allows self defining functions (by rVM code)
Added by Heinz Gies about 2 years ago

Okay some quite interesting new feature for rVM.

From this release on 0.0.4 you can define own functions. Which is, I believe a quiet essential part of programming. This will let you to write libraries and even extract the functions to use separately within the calling program - niftily isn't it?

The environment will hold a block object for every function that can be called with arguments passed in the environment.

To demonstrate how this works the math parser got the capability to define mathematical functions. Now feel free to look at that for ideas, it even declares variable names and such for use within the function!


Comments