[ENH] GeneralEnh-ajh

Anthony Hannan ajhannan at yahoo.com
Tue Jun 24 05:16:50 UTC 2003


GeneralEnh-ajh contains general enhancements that were previously included in
ContextCleanupPlus-ajh.  It now exist as its own package on SqueakMap.  Many
enhancements were removed whose users (closure compiler) were easy to change to
use existing protocol.  Only fixes and really helpful new protocol remain. 
They are:

Fixes:
	Enhances failure code for elementsExchangeIdentityWith:.
	Enhances Interval + and -.
	Enhances LinkedList species, at: and add:before:.
	Enhances LookupKey name.
	Enhances Message printOn:.
	Moves tryNamedPrimitive... from Object to ProtoObject so simulator will work
correctly for all objects.
	Enhances Object copy by calling postCopy.
	Fixes Object newFrom: and copySameFrom: so as: will copy indexable fields as
well.
	Fixes Object in: so it will work with BlockClosures as well as BlockContexts.
	Adds Object asStringOrText so all objects not just MethodReferences can exist
in list morphs and print.
	Adds ReadStream readStream to return self, so readStream can be sent without
worrying if the receiver is already a stream.
	Enhances Stream printOn: to show contents.
	Adds gray to TextColor constants.
	Fixes WriteStream setToEnd to update readLimit.

New Protocol:
	Object >> postCopy.
	Object >> literalEqual:.
	Integer >> as31BitSmallInt.
	Message >> sendTo:, setSelector:, lookupClass:, lookupClass.
	OrderedCollection >> removeFirst:, removeLast:.
	PositionableStream >> back, backChunck, peekBack.
	SequenceableCollection >> allButFirstDo:, allButLastDo:, atLast:[ifAbsent:],
atLast:put:, copyWithFirst:, detectIndex:[ifNone:], reverseDetect:[ifNone:],
reverseDetectIndex:[ifNone:].
	WriteStream >> tabs:.

ClosureCompiler-ajh depends on this package (but not ContextCleanup-ajh).

Cheers,
Anthony


__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com



More information about the Squeak-dev mailing list