<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">2017-10-14 13:28 GMT+02:00  <span dir="ltr"><<a href="mailto:commits@source.squeak.org" target="_blank">commits@source.squeak.org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Tobias Pape uploaded a new version of Collections to project The Trunk:<br>
<a href="http://source.squeak.org/trunk/Collections-topa.764.mcz" rel="noreferrer" target="_blank">http://source.squeak.org/<wbr>trunk/Collections-topa.764.mcz</a><br>
<br>
==================== Summary ====================<br>
<br>
Name: Collections-topa.764<br>
Author: topa<br>
Time: 14 October 2017, 1:30:58.746815 pm<br>
UUID: 8b1c780c-c4fb-4a8c-baac-<wbr>050c5a3e67c2<br>
Ancestors: Collections-pre.763<br>
<br>
Improve #initializedInstance and #empty for certain collections<br>
<br>
=============== Diff against Collections-pre.763 ===============<br>
<br>
Item was added:<br>
+ ----- Method: Bitset class>>initializedInstance (in category 'instance creation') -----<br>
+ initializedInstance<br>
+<br>
+       ^ self new: 0!<br>
<br>
Item was added:<br>
+ ----- Method: ByteArray class>>empty (in category 'instance creation') -----<br>
+ empty<br>
+       "A canonicalized empty ByteArray instance."<br>
+       ^ #[]!<br>
<br>
Item was added:<br>
+ ----- Method: NonPointersOrderedCollection class>>initializedInstance (in category 'instance creation') -----<br>
+ initializedInstance<br>
+       " There are no instances of me, just my subclasses "<br>
+       ^ self ~~ NonPointersOrderedCollection ifTrue: [super initializedInstance]<br></blockquote><div><br></div><div>Hi Tobias,</div><div>if there is no instances, shouldn't the message fail?</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
+       !<br>
<br>
Item was added:<br>
+ ----- Method: Symbol class>>empty (in category 'instance creation') -----<br>
+ empty<br>
+       "A canonicalized empty symbol."<br>
+       ^ #''!<br>
<br>
<br>
</blockquote></div><br></div></div>