[Cuis-dev] LargeNegativeInteger --- extra minus signs when printing
Andres Valloud
ten at smallinteger.com
Thu Sep 16 22:46:25 PDT 2021
That works :).
On 9/16/21 10:30 AM, Juan Vuletich via Cuis-dev wrote:
> On 9/14/2021 10:29 PM, Andres Valloud via Cuis-dev wrote:
>> Actually I'm starting to think that printOn:base:nDigits: should be
>> private in LargePositiveInteger, rather than public.
>>
>> On 9/14/21 6:07 PM, Andres Valloud via Cuis-dev wrote:
>>> Hi, consider this test case.
>>>
>>> | ws |
>>> ws := String new writeStream.
>>> 1 bitShift: 64 :: negated :: printOn: ws base: 10 nDigits: 20.
>>> ws contents '-1844674407-3709551616'
>>>
>>> The problem is that printOn:base:nDigits: is not reimplemented in
>>> LargeNegativeInteger. See attached for a suggested fix.
>>>
>>> Andres.
>>>
>
> Just redefined it in LargeNegativeInteger to fail.
>
> Thanks,
>
More information about the Cuis-dev
mailing list