2014-07-15 08:31:25 +02:00
|
|
|
require_relative "value"
|
|
|
|
|
|
|
|
module Virtual
|
|
|
|
# Integer and (Object) References are the main derived classes, but float will come and ...
|
|
|
|
# The Mystery Type has unknown type and has only casting methods. So it must be cast to be useful.
|
|
|
|
class Type
|
2014-07-15 08:34:45 +02:00
|
|
|
def == other
|
|
|
|
return false unless other.class == self.class
|
|
|
|
return true
|
|
|
|
end
|
2014-07-15 08:31:25 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
class Integer < Type
|
|
|
|
end
|
|
|
|
|
|
|
|
class Reference < Type
|
|
|
|
end
|
|
|
|
|
|
|
|
class Mystery < Type
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|