[Cuis-dev] Problems with strange indices

Luciano Notarfrancesco luchiano at gmail.com
Mon Jun 15 13:06:04 PDT 2026


This change removes the line that returned self, letting Float>>partValues:
fail if it's not finite. It actually does what the comment originally said.
Let me know if you think it's not the best way to fix this.

On Tue, Jun 16, 2026 at 2:48 AM Luciano Notarfrancesco <luchiano at gmail.com>
wrote:

> The method Object>>basicAt: goes into an infinite recursion if the
> argument is a float NaN. The problem is that when the primitive fails it
> ends up doing "self basicAt: index asInteger", Number>>asInteger is defined
> as "self truncated" and BoxedFloat64>>truncated returns self if it's a NaN.
>
> The same happens with Object>>at:, and probably others, for example: #()
> at: 1.0 / 0.0
>
> How do you think we should fix this?
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20260616/e644cb53/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: BoxedFloat64-truncated.st
Type: application/octet-stream
Size: 720 bytes
Desc: not available
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20260616/e644cb53/attachment.obj>


More information about the Cuis-dev mailing list