[Cuis-dev] Problems with strange indices
Juan Vuletich
juan at cuis.st
Tue Jun 16 06:02:18 PDT 2026
Yep. Just pushed it.
Thanks!
On 2026-06-15 5:06 PM, Luciano Notarfrancesco via Cuis-dev wrote:
> 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?
>
>
--
Juan Vuletich
www.cuis.st
github.com/jvuletich
researchgate.net/profile/Juan-Vuletich
independent.academia.edu/JuanVuletich
patents.justia.com/inventor/juan-manuel-vuletich
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20260616/e936c335/attachment.htm>
More information about the Cuis-dev
mailing list