On Thu, Dec 10, 2009 at 1:59 AM, Sheridan Mahoney <[hidden email]> wrote:
what does non-Canonical mean ? and the user should not have to use +9999 agree. I ended up getting stuck however, in trying to discover what process yes. We should try to look in the old squeak images (like 3.6). I tried to make it work, but my machine seems to be too new :( Does someone has an old squeak running and has this method implemented?
Easy, see the senders of onFileWithSymbols.There are 4, but the more important is writeToFileWithSymbols which is also called by writeToFileWithSymbols: So, if you don't use any of those messages, the state never would be onFileWithSymbols. Try to write a test using that message and you will probably get the DNU. In addition, as you said, the user shouldn't even be care about this method. He should just send the message "writeToDisk". I have the same impression with the classes. When you store in a segment a class, you must also put the metaclass. And I think this can be automatically be done by ImageSegment instead of the user. Does this seem reasonable? _______________________________________________ Pharo-project mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project |
I will give you my understanding, with the hope that others more knowledgeable will add to this if it is off the mark... Canonical means : "reduced to the simplest and most significant form possible without loss of generality" In the context of Symbols in Smalltalk, each Symbol has only one instance, and it is the canonical instance for all references. So a non-canonical Symbol is usually one for which there is more than one instance. My old programming textbook described the Smalltalk language as the canonical example for OO languages... HTH, and Cheers, Sheri |
Free forum by Nabble | Edit this page |