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:
@ -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
|
||||
|
Reference in New Issue
Block a user