[Pkg] The Trunk: Collections-topa.764.mcz

commits at source.squeak.org commits at source.squeak.org
Sat Oct 14 11:28:38 UTC 2017


Tobias Pape uploaded a new version of Collections to project The Trunk:
http://source.squeak.org/trunk/Collections-topa.764.mcz

==================== Summary ====================

Name: Collections-topa.764
Author: topa
Time: 14 October 2017, 1:30:58.746815 pm
UUID: 8b1c780c-c4fb-4a8c-baac-050c5a3e67c2
Ancestors: Collections-pre.763

Improve #initializedInstance and #empty for certain collections

=============== Diff against Collections-pre.763 ===============

Item was added:
+ ----- Method: Bitset class>>initializedInstance (in category 'instance creation') -----
+ initializedInstance
+ 
+ 	^ self new: 0!

Item was added:
+ ----- Method: ByteArray class>>empty (in category 'instance creation') -----
+ empty
+ 	"A canonicalized empty ByteArray instance."
+ 	^ #[]!

Item was added:
+ ----- Method: NonPointersOrderedCollection class>>initializedInstance (in category 'instance creation') -----
+ initializedInstance
+ 	" There are no instances of me, just my subclasses "
+ 	^ self ~~ NonPointersOrderedCollection ifTrue: [super initializedInstance]
+ 	!

Item was added:
+ ----- Method: Symbol class>>empty (in category 'instance creation') -----
+ empty
+ 	"A canonicalized empty symbol."
+ 	^ #''!



More information about the Packages mailing list