[Squeakfoundation]ContextCleanupPlus-ajh (was: Re: KCP & 3.6)

Daniel Vainsencher danielv at netvision.net.il
Sun Jun 22 04:55:44 CEST 2003


[Additions to various classes...]
Note that my problem with these is not that I argue with the usefulness
of specific items - I simply don't think that it's appropriate to
include them as part of a fix. Why don't you post them one by one to the
mailing list for discussion, where people may argue whether they are
appropriate. You're saying that something should be part of the class
library, defend your opinions on squeak-dev, just like Richard does,
method by method, idea by idea.

[... are mostly required by closures, not runtime fixes]
Great. Then can you please isolate only those needed for the runtime
fixes? it'll mean we have a lot less to talk about before including the
runtime fixes in the image. Then we'll only need a review by someone
with exceptions savvy...

Daniel

Anthony Hannan <ajhannan at yahoo.com> wrote:
> > >4 Anthony runtime enhancements (split in two - fixes and closures)
> 
> There are two packages: ContextCleanupPlus-ajh.zip and ClosureCs-ajh.zip. 
> ContextCleanupPlus cleans up contexts, exceptions, and related classes.  You
> can think of it as part of KCP.  I have used it for about a year in my image,
> and after a few minor updates here and there, things are running very smoothly.
>  I would encourage people to test it just by loading it and going about their
> normal business.  Normal operation will test its low-level changes.
> 
> > What about the SmaCC license issue?
> 
> ContextCleanupPlus does not depend on SmaCC, only ClosureCs does which we can
> be considered after ContextCleanupPlus.  ClosureCs depends on
> ContextCleanupPlus but not vice versa.
> 
> > Anthony, for some reason includes in this package myriad changes to
> > existing classes.
> 
> Of course, cleanup involves changes to existing classes.  If you're talking
> about the additional protocol I've added to general classes, below are the
> detailed explanations.  I think you will agree they a reasonable, and truly
> belong as class extensions rather than in user classes where they would be
> tedious and less reusable.  I would not be afraid to add these new protocols
> especially since they can't affect any existing code.  Note, many of the users
> are in ClosureCs and not in ContextCleanupPlus itself.
> 
> Object>>literalEqual: - Do the receiver and argument represent the same
> literal.  Note, two objects can be = but not literalEqual: as in 'anthony' =
> #anthony, but ('anthony' literalEqual: #anthony) not.
> 
> Boolean>>asBit - Return 1 for true, 0 for false.
> 
> Class>>becomeClass: otherClass - Become forward the other class and fix up the
> global dictionary and system organization as well.
> 
> Collection>>collectArray: - Same as collect: except always return an array.
> 
> CompiledMethod>>headerDescription - Prints out all the components of the header
> (numArgs, numLiterals, etc) in a readable format.
> 
> LargePositiveInteger>>as31BitSmallInt - Keep my 31 bits the same but put them
> in a SmallInt.
> 
> Number>>extend: - Like #to: except designate the length instead of the last.
> 
> OrderedCollection>>bottom,top,pop,push,etc. - stack protocol.
> 
> SequenceableCollection>>allButFirstDo:,allButLastDo:,atLast:,atLast:put:
> ,copyGrowBy:copyWithFirst:,detectIndex:,reverseDetect:,slide:by:,with:wi
> thIndexDo: - Additional methods that are similar to other methods that already
> exist and should be part of the protocol because they are useful.  I bet many
> of these have been needed in the past but were coded out the long way in the
> user.
> 
> PositionableStream>>back,current,previous,do:,at:,includes: - Added helpful
> methods for stepping back and looking into the collection itself.
> 
> WriteStream>>insert:,removeNext: - Additional manipulation beside appending.
> 
> (The last two additions may not seam appropriate for streams if you look at a
> stream like a pipe.  So I could be persuaded to move these to a new class.  But
> the rest I believe are very appropriate for their specified classes.)
> 
> Cheers,
> Anthony
> 
> 
> __________________________________
> Do you Yahoo!?
> SBC Yahoo! DSL - Now only $29.95 per month!
> http://sbc.yahoo.com
> _______________________________________________
> Squeakfoundation mailing list
> Squeakfoundation at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/listinfo/squeakfoundation


More information about the Squeakfoundation mailing list