still fixing index bugs

the indexed_length got written wrong
which is why the layout methods didn’t work
Now all indexes are 1 based, even fake men, where we just ignore 0
This commit is contained in:
Torsten Ruger
2015-10-26 14:33:36 +02:00
parent 9f4952b5ac
commit 885aa765d6
10 changed files with 36 additions and 23 deletions

View File

@ -11,10 +11,9 @@
# The Layout is **always** the first entry (index 1) in an object, but the type word is index 0
module Parfait
class Object < Value
LAYOUT_INDEX = 1
LAYOUT_INDEX = 0
CLASS_INDEX = 1 #only used in class, but keep constants together
class Object < Value
def self.new *args
object = self.allocate