also giving word it's length
still hacked as char per word, but should be easy enough to fix when…
This commit is contained in:
@ -113,7 +113,7 @@ module Register
|
||||
# unfortuantely that constant condenses every detail about the system, class names
|
||||
# and all instance variable names. Really have to find a better way
|
||||
def layout_names
|
||||
{ :Word => [] ,
|
||||
{ :Word => [:char_length] ,
|
||||
:List => [:indexed_length] ,
|
||||
# Assumtion is that name is the last of message
|
||||
:Message => [:next_message , :receiver , :frame , :return_address , :return_value,
|
||||
|
@ -22,8 +22,9 @@ module Register
|
||||
end
|
||||
layout = object.get_layout
|
||||
keep(layout , depth + 1)
|
||||
return if object.is_a? Symbol
|
||||
layout.object_instance_names.each do |name|
|
||||
#puts "Keep #{name}"
|
||||
#puts "Keep #{name} for #{object.class}"
|
||||
inst = object.get_instance_variable name
|
||||
keep(inst , depth + 1)
|
||||
end
|
||||
|
Reference in New Issue
Block a user