Unique collection protocol
In addition to the protocols supported by CLDT collection classes, several of the collection classes have unique protocols that are not shared with any other class.
Array
multiBecome:
Note:
This message is not in the Blue Book but has been included in CLDT in order to provide an efficient means of mutating multiple objects.
 
Porting tip:
The multiBecome: message is not supported in Smalltalk/V or Objectworks\Smalltalk.
Bag
add:withOccurrences:
Interval
increment
Interval class
from:to:, from:to:by:
OrderedCollection
add:after:, add:afterIndex:, add:before:, add:beforeIndex:, addAll:after:, addAll:afterIndex:, addAll:before:, addAll:beforeIndex:, addAllFirst:, addAllLast:, addFirst:, addLast:
Porting tip:
The add:afterIndex:, add:beforeIndex:, addAll:afterIndex:, and addAll:beforeIndex: messages are not supported in Smalltalk/V or Objectworks\Smalltalk.
SortedCollection
sortBlock, sortBlock:
SortedCollection class
sortBlock:
String and DBString
addLineDelimiters, asDBString, asSBString, bindWith:, bindWith:with:, bindWith:with:with:, bindWith:with:with:with:, bindWith:with:with:with:with:, bindWith:with:with:with:with:with:, bindWithArguments:, trimBlanks, trimSeparators
Note:
These String and DBString messages are not in the Blue Book. They have been added to VA Smalltalk based on feedback from developers.
 
Porting tip:
The only one of these String and DBString messages that is supported by Smalltalk/V is trimBlanks. Smalltalk/V also provides asInteger and asFloat which are similar to asNumber. Objectworks\Smalltalk supports only asNumber, byteAt:, and byteAt:put:. Objectworks\Smalltalk counts Null (ASCII 0) as a separator in trimSeparators, but VA Smalltalk and Smalltalk/V do not.
Symbol
argumentCount
Note:
This method is not in the Blue Book, but is needed to extract the number of expected arguments from a selector.
 
Porting tip:
In Objectworks\Smalltalk this method is called numArgs. It is not included in the Smalltalk/V image.
Last modified date: 04/20/2020