[Cuis-dev] Problems with strange indices

Luciano Notarfrancesco luchiano at gmail.com
Mon Jun 15 12:48:39 PDT 2026


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/11d4801b/attachment.htm>


More information about the Cuis-dev mailing list