renamed array and hash to list and dictionary

Since these are not the ruby classes, we don’t need
the old names. They are misleading.
An Array is a military term, we mean list
And a Hash is an implementation of a Dictionary,
or LookupTable
This commit is contained in:
Torsten Ruger
2015-05-12 19:10:45 +03:00
parent a94ce51c58
commit dd41758dea
10 changed files with 21 additions and 21 deletions

View File

@ -106,7 +106,7 @@ end
Virtual::Object.new.padded_words(2)
end
end
Parfait::Hash.class_eval do
Parfait::Dictionary.class_eval do
include Positioned
HASH = { :names => [:keys,:values] , :types => [Virtual::Reference,Virtual::Reference]}
def layout
@ -116,7 +116,7 @@ Parfait::Hash.class_eval do
Virtual::Object.new.padded_words(2)
end
end
::Parfait::Array.class_eval do
::Parfait::List.class_eval do
include Positioned
def layout
Virtual::Object.layout