start on implementing set
This commit is contained in:
parent
a63e37fc50
commit
f0efb1e0d9
@ -86,3 +86,4 @@ require_relative "constants"
|
||||
require "boot/boot_space"
|
||||
require_relative "send_implementation"
|
||||
require_relative "get_implementation"
|
||||
require_relative "set_implementation"
|
||||
|
@ -26,4 +26,3 @@ module Virtual
|
||||
end
|
||||
end
|
||||
end
|
||||
require_relative "get_implementation"
|
14
lib/virtual/set_implementation.rb
Normal file
14
lib/virtual/set_implementation.rb
Normal 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
|
Loading…
Reference in New Issue
Block a user