Hi folks. I am writing some ImageSegment tests and there is something I don't know how it is done. I create a segment with a root (array) that has symbols inside. Then, I export the segment using the method ImageSegment >> writeForExportOn: which uses a SmartRefStream to serialize itself and write it to a file. Now...the situation is like this: I hold the symbols so that they go to outPointers instead of wordarray. When I export the segment using writeForExportOn: the objects from outPointers should be exported also.
Case 1) I export the segment and then load it in an image where the symbols are not present, and after the load, the symbols are present (and they came from the outPointers)...This is correct Case 2) I export the segment and then load it in an image where the symbols ARE ALREADY present, and after the load, the symbols ARE NOT duplicated...Ok..this is cool. But how does this magic happens ? Why I don't have two symbols equal ? If need the unit tests of both cases, I can past it here. Any ideas where this black magic comes from ?
_______________________________________________ Pharo-project mailing list [email protected] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
