[squeak-dev] RunArray copying should check interval boundaries

christoph.thiede at student.hpi.uni-potsdam.de christoph.thiede at student.hpi.uni-potsdam.de
Fri Oct 22 20:50:58 UTC 2021

Short note to all the Collections experts out there: RunArray >> #copyFrom:to: does not raise an error if a too large stop value is passed. As a consequence, code like this does not raise an error by itself but silently forwards the defect to the CompositionScanner while rendering the text:

	'foo' asText addAttribute: TextEmphasis bold from: 2 to: 5; edit

Maybe someone has the knowledge and energy to get these things a little bit more robust. :-)


Sent from Squeak Inbox Talk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20211022/ded3ec86/attachment.html>

More information about the Squeak-dev mailing list