<body><div id="__MailbirdStyleContent" style="font-size: 10pt;font-family: Arial;color: #000000;text-align: left" dir="ltr">
Hi Nicolas,<div><br></div><div>thank you for the quick response. :-)</div><div><br></div><div>Best,</div><div>Marcel</div><div class="mb_sig"></div><blockquote class='history_container' type='cite' style='border-left-style:solid;border-width:1px; margin-top:20px; margin-left:0px;padding-left:10px;'>
<p style='color: #AAAAAA; margin-top: 10px;'>Am 04.03.2021 18:55:18 schrieb commits@source.squeak.org <commits@source.squeak.org>:</p><div style='font-family:Arial,Helvetica,sans-serif'>Nicolas Cellier uploaded a new version of Collections to project The Trunk:<br>http://source.squeak.org/trunk/Collections-nice.929.mcz<br><br>==================== Summary ====================<br><br>Name: Collections-nice.929<br>Author: nice<br>Time: 4 March 2021, 6:55:05.090663 pm<br>UUID: 6e327843-eedc-4eeb-ba1b-0e14d4f40e56<br>Ancestors: Collections-nice.928<br><br>Don't hardcode Interval and LimitedPrecisionInterval so as to enable subclassing.<br><br>Note: a subclass wanting to handle limited precision bounds or increment by itself should define:<br><br>limitedPrecisionSpecies<br> ^self.<br> <br>This is not the case of TextLineInterval that only ever see Integer bounds.<br><br>=============== Diff against Collections-nice.928 ===============<br><br>Item was changed:<br> ----- Method: Interval class>>from:to: (in category 'instance creation') -----<br> from: startInteger to: stopInteger <br> "Answer an instance of me, starting at startNumber, ending at <br> stopNumber, and with an interval increment of 1."<br> <br> ^((startInteger hasLimitedPrecision or: [stopInteger hasLimitedPrecision])<br>+ ifTrue: [self limitedPrecisionSpecies]<br>+ ifFalse: [self]) basicNew<br>- ifTrue: [LimitedPrecisionInterval]<br>- ifFalse: [Interval]) basicNew<br> setFrom: startInteger<br> to: stopInteger<br> by: 1!<br><br>Item was changed:<br> ----- Method: Interval class>>from:to:by: (in category 'instance creation') -----<br> from: startInteger to: stopInteger by: stepInteger <br> "Answer an instance of me, starting at startNumber, ending at <br> stopNumber, and with an interval increment of stepNumber."<br> <br> ^((startInteger hasLimitedPrecision or: [stopInteger hasLimitedPrecision or: [stepInteger hasLimitedPrecision]])<br>+ ifTrue: [self limitedPrecisionSpecies]<br>+ ifFalse: [self]) basicNew<br>- ifTrue: [LimitedPrecisionInterval]<br>- ifFalse: [Interval]) basicNew<br> setFrom: startInteger<br> to: stopInteger<br> by: stepInteger!<br><br>Item was added:<br>+ ----- Method: Interval class>>limitedPrecisionSpecies (in category 'instance creation') -----<br>+ limitedPrecisionSpecies<br>+ "Answer a class able to handle limited precision bounds or step"<br>+ <br>+ ^LimitedPrecisionInterval!<br><br><br></div></blockquote>
</div></body>