Set>>deepCopy

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Set>>deepCopy

Ken Treis
Ran into this today in 3.1.0.1:

(Set with: 1) deepCopy => aSet()

Apparently _basicSize on the set is 0, which is why the elements don't get copied as would be expected.

--
Ken Treis
Miriam Technologies, Inc.
(866) 652-2040 x221


_______________________________________________
GemStone-Smalltalk mailing list
Archive: http://forum.world.st/Gemstone-Customers-f1461796.html

Reply | Threaded
Open this post in threaded view
|

Re: Set>>deepCopy

Ken Treis
Patch attached. No guarantee that it's anything close to correct.

--
Ken Treis
Miriam Technologies, Inc.
(866) 652-2040 x221

On Nov 29, 2012, at 11:31 AM, Ken Treis wrote:

Ran into this today in 3.1.0.1:

(Set with: 1) deepCopy => aSet()

Apparently _basicSize on the set is 0, which is why the elements don't get copied as would be expected.



_______________________________________________
GemStone-Smalltalk mailing list
Archive: http://forum.world.st/Gemstone-Customers-f1461796.html


UnorderedCollection_deepCopyWith.gs (578 bytes) Download Attachment