introduce some constants

This commit is contained in:
Torsten Ruger
2015-05-17 14:40:02 +03:00
parent 8fa501fb91
commit 350d708fd3
2 changed files with 22 additions and 6 deletions

View File

@@ -10,8 +10,9 @@
#
# As every object has a Layout to describe it, the name "layout" is the
# first name in the list for every Layout.
# But as we want every Object to have a class, this is the second
# entry in the list. The name for the entry is "object_class"
# But as we want every Object to have a class, the Layout carries that class.
# So the layout of layout has an entry "object_class"
# In other words, the Layout is a list of names that describe
# the values stored in an actual object.
@@ -34,7 +35,7 @@ module Parfait
# beat the recursion! fixed known offset for class object in the layout
def get_object_class()
return internal_object_get(2)
return internal_object_get(CLASS_INDEX)
end
end
end