rubyx
rubyx copied to clipboard
Require
Since i just hacked first basic require, this is a reminder of how to do it right.
a real require would need a load_path . This would mean implementing globals (or maybe start with another space instance variable) Require obviously goes throught the paths and looks for required file.
The resulting file is opened, read, parsed (via RubyCompiler) and the "vooled"
The only thing right about the hack is the place (i think). Above transformation (and the current hack) happens on the step from Ruby to Vool, ie in the to_vool fo the send that it is.
See also require_relative #28