[KCP] SystemDictionary cleaning: Comments and design

goran.krampe at bluefish.se goran.krampe at bluefish.se
Fri Jun 13 07:49:21 UTC 2003


Bob Arning  <arning at charm.net> wrote:
> On Fri, 13 Jun 2003 11:51:20 +1200 (NZST) "Richard A. O'Keefe" <ok at cs.otago.ac.nz> wrote:
> >    "Smalltalk condenseChanges
> >     is now (SourceManager condenseChanges).
> >     Smalltalk sourcesName
> >     is now (SourceManager sourcesName).
> >     Smalltalk bytesLeft
> >     is now (MemoryManager bytesLeft).
> >     ..."
> >
> >I want this stuff where the browser can find it.
> >For example, suppose I type
> >    Smalltalk bytesLeft
> >in a workspace, and get a MNU.  Then I can ask for "sources with it",
> >and be pointed right to the place I want.
> 
> Well, finding senders is quite a bit faster than finding method source containing something, so why not write
> 
> 	[Smalltalk condenseChanges] isNow: [SourceManager condenseChanges].
> 	[Smalltalk sourcesName] isNow: [SourceManager sourcesName].
> 	[Smalltalk bytesLeft] isNow: [MemoryManager bytesLeft].
> 
> and you can search for the old version and find the new (or search for the new and find the old). Plus, you can search for senders of #isNow: to find all such changes.
> 
> Cheers,
> Bob

Hehe, funny how things sometimes can be solved quite easily. :-) And I
guess #isNow: could actually maintain some dictionary so that the env
could "auto correct" when you try to run these do-its - like when you
misspell a message name it gives you possible correct choices. But that
would perhaps be overkill of course.

regards, Göran



More information about the Squeak-dev mailing list