start on implementing set

This commit is contained in:
Torsten Ruger 2014-08-23 13:57:14 +03:00
parent a63e37fc50
commit f0efb1e0d9
3 changed files with 15 additions and 1 deletions

View File

@ -86,3 +86,4 @@ require_relative "constants"
require "boot/boot_space"
require_relative "send_implementation"
require_relative "get_implementation"
require_relative "set_implementation"

View File

@ -26,4 +26,3 @@ module Virtual
end
end
end
require_relative "get_implementation"

View File

@ -0,0 +1,14 @@
module Virtual
# This implements the send logic
# Send is so complicated that we actually code it in ruby and stick it in
# That off course opens up an endless loop possibility that we stop by reducing to Class and Module methods
class SetImplementation
def run block
block.codes.dup.each do |code|
next unless code.is_a? Virtual::Set
raise "Start coding"
end
end
end
Object.space.add_pass_after SetImplementation , GetImplementation
end