rubyx icon indicating copy to clipboard operation
rubyx copied to clipboard

require_relative

Open rubydesign opened this issue 6 years ago • 0 comments

Just because i just wrote down what require would require :-)

require_relative needs to know the current file name of the file where the statement is. Something like the __FILE__ in ruby. This would mean using some wrapper around the actual text that we parse, something like a FileSource that has the file name and accessors for the text. Also the statements would somehow have to be connected to the source. Probably the Ruby would havto be connected to the vool, just like the vool is the "source" for Mom, which is the "source" for Risc, so that all could be looked up later. This would be great for profiling and for that reason this origin tracking may even happe some day soon(ish)

Otherwise the full version of require_relative is only needed when all of Parfait works, ie not tooo soon.

rubydesign avatar Sep 07 '19 19:09 rubydesign