make object derivation explicit

in parfait
This commit is contained in:
Torsten Ruger 2015-04-08 20:33:15 +03:00
parent 81e3a98af8
commit aaf6da8808
7 changed files with 7 additions and 7 deletions

View File

@ -1,5 +1,5 @@
class Array < BaseObject
class Array < Object
#many basic array functions can not be defined in ruby, such as
# get/set/length/add/delete
# so they must be defined as CompiledMethods in Builtin::Kernel

View File

@ -13,6 +13,6 @@
# In fact this property is implemented in the Object, as methods
# may be added to any object at run-time
class Class
class Class < Object
end

View File

@ -4,6 +4,6 @@
# It allows for access to those variables basically
class Frame
class Frame < Object
end

View File

@ -1,6 +1,6 @@
# almost simplest hash imaginable. make good use of arrays
class Hash
class Hash < Object
def initialize
@keys = Array.new()
@values = Array.new()

View File

@ -2,7 +2,7 @@
# A message is what is sent when you invoke a method. Args and stuff are packed up in to a Message
# and the Message is sent to the receiver.
class Message
class Message < Object
def get_type_for(name)
index = @layout.get_index(name)

View File

@ -8,6 +8,6 @@
# object. The smallest object is usually a cache line, 16 bytes or
# an exponent of two larger.
class Page
class Page < Object
end

View File

@ -8,6 +8,6 @@
# "New" is slightly misleading in that normal operation only ever
# recycles objects.
class Space
class Space < Object
end