=== Top of the Swiki === Attachments ===

Using the ChangeSorter

From the SqueakList: 5 Sep 1997

What's the ChangeSorter for? It looks like it's for moving definitions between change sets. Why do you want to do that? I see that the "Preamble" is a standard "Who did this when" header, but what's the "Postscript"?


We use the ChangeSorter to sort changes into meaningful collections to be filed out and exchanged with other Squeak users. One often works on a number of different projects at the same time -- for example, while working on some application I might add some nifty new method to OrderedCollection. I might also temporarily change some methods during debugging. Later, I could use to change sorter to sort my changes into one set for the new OrderedCollection method and another for my application. The temporary changes I would just "forget" from the change set.

The postscript allows one to add expressions to be evaluated after the filein has been done. For example, if the changes including adding a new instance variable to some class, one might add an expression to initialize that instance variable in all existing instances of that class.

-- John Maloney