2014-08-23 20:49:09 +02:00
|
|
|
module Register
|
2014-08-23 09:59:35 +02:00
|
|
|
# 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 GetImplementation
|
|
|
|
def run block
|
|
|
|
block.codes.dup.each do |code|
|
2014-08-23 20:49:09 +02:00
|
|
|
next unless code.is_a? Virtual::InstanceGet
|
2014-08-23 09:59:35 +02:00
|
|
|
raise "Start coding"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
2014-08-23 20:49:09 +02:00
|
|
|
Virtual::Object.space.add_pass_after GetImplementation, Virtual::SendImplementation
|
2014-08-23 09:59:35 +02:00
|
|
|
end
|