Define eval as module function.
Merge pull request #2137 from take-cheeze/module_function_eval

Define eval as module function.