Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 0.7
-
Fix Version/s: 0.7
-
Component/s: Runtime (Boo.Lang)
-
Labels:None
-
Number of attachments :
Description
(extremely low hanging fruit)
Boo.Lang.Hash does not properly override "Clone()"; since this class inherits from Hashmap, it actually returns a Hashmap instead of the expected Hash class when the Clone() method is called. Since you can't iterate through a Hashmap via DictionaryKey, this is unpleasant to deal with.
An extremely small patch, attached, implements Clone() to return a new Hash object rather than a Hashmap.
thanks!