finally change List to derive from data object

can’t derive from data16 as some lists are longer
have to get the delegation to work first
This commit is contained in:
Torsten Ruger
2018-05-28 15:45:29 +03:00
parent f9a89db10c
commit 8ef1a471a4
7 changed files with 33 additions and 52 deletions

View File

@ -30,8 +30,8 @@ module Parfait
def data_length
raise "called #{self}"
end
def data_start
return get_type.get_length
def self.type_length
raise "called #{self}"
end
end
@ -69,4 +69,9 @@ module Parfait
16 * 4
end
end
class Data32 < DataObject
def self.memory_size
32
end
end
end