help-smalltalk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-smalltalk] Re: [bug] deepCopy on Dictionary doesn't work.


From: Paolo Bonzini
Subject: [Help-smalltalk] Re: [bug] deepCopy on Dictionary doesn't work.
Date: Tue, 02 Oct 2007 09:27:51 -0700

Issue status update for http://smalltalk.gnu.org/project/issue/87 Post a follow up: http://smalltalk.gnu.org/project/comments/add/87

Project:      GNU Smalltalk
Version:      <none>
Component:    Base classes
Category:     bug reports
Priority:     normal
-Assigned to:  Unassigned
+Assigned to:  bonzinip
Reported by:  elmex
Updated by:   bonzinip
-Status:       active
+Status:       reviewed
Attachment:   
http://smalltalk.gnu.org/files/issues/gst-dictionary-deepcopy.patch (736 bytes)

Fixed with the attached patch.  It copies both keys and values.  Do you
reckon it would be better to only copy values?

st> (Dictionary from: {'a' -> 1}) deepCopy keys anyOne == 'a'
false
st> (Dictionary from: {'a' -> 1}) deepCopy keys anyOne = 'a'
true






reply via email to

[Prev in Thread] Current Thread [Next in Thread]