start on passes

after all that booting and vm/parfait changes
passes have gone out of sync, start to fix
This commit is contained in:
Torsten Ruger
2015-05-24 13:55:05 +03:00
parent 47abdffd1a
commit 6786855e95
3 changed files with 25 additions and 12 deletions

View File

@@ -4,17 +4,22 @@ module Virtual
# The Mystery Type has unknown type and has only casting methods. So it must be cast to be useful.
class Type
def == other
return false unless other.class == self.class
return false unless other.class == self.class
return true
end
end
class Integer < Type
end
class Reference < Type
# possibly unknown value, but known class (as in methods)
def initialize clazz = nil
@of_class = clazz
end
attr_reader :of_class
end
class Mystery < Type
end