small clean

This commit is contained in:
Torsten Ruger
2015-09-27 14:07:02 +03:00
parent dba94827ec
commit 94c08f7129
6 changed files with 5 additions and 19 deletions

View File

@ -5,8 +5,6 @@ module Virtual
# runtime, ie found in Parfait::Method
# the source we create here is injected into the method and used only at compile-time
# receiver
# return arg (usually mystery, but for coded ones can be more specific)
#
# Methods are one step up from to VM::Blocks. Where Blocks can be jumped to, Methods can be called.

View File

@ -1,7 +1,7 @@
module Virtual
# Integer and (Object) References are the main derived classes, but float will come and ...
# The Unknown Type has unknown type and has only casting methods. So it must be cast to be useful.
# Integer and (Object) References are the main derived classes, but float will come.
class Type
def == other
return false unless other.class == self.class
@ -9,7 +9,7 @@ module Virtual
end
# map from a type sym (currently :int/:ref) to a class of subtype of Type
# TODO needs to be made extensible in a defined way.
# TODO needs to be made extensible in a defined way.
def self.from_sym type
case type
when :int