hurra, a first test. looks a lot.... but lets not spoil th efeeling

This commit is contained in:
Torsten Ruger
2014-06-26 18:39:02 +03:00
parent 525f9d45c5
commit 16ceb2a60d
13 changed files with 94 additions and 87 deletions

16
lib/virtual/value.rb Normal file
View File

@@ -0,0 +1,16 @@
module Virtual
# the virtual machine is implemented in values. Values have types which are represented as classes, but it is still
# important to make the distinction. Values are immutable, passed by value and machine word sized.
# Integer and (Object) References are the main derived classes, but float will come and ...
# The Mystery Value has unknown type and has only casting methods. So it must be cast to be useful.
class Value
def type
self.class
end
private
def initialize
end
end
end