On 15/01/2023 9:59 pm, albert wrote:
> In article <tpvkld$1r7m$
1...@gioia.aioe.org>, dxforth <
dxf...@gmail.com> wrote:
>> On 14/01/2023 12:53 pm, Zbig wrote:
>>>> Who is working on a 64 bit system, can use normal integers.
>>>> It is bad to have a definition like TYPE (adr u -- ).
>>>> Really? Print more that 100 gazillion characters in one go?
>>>> Make an implementation of TYPE portable:
>>>> : TYPE DUP 0< ABORT" Have you tried walking to China too, on foot?"
>>>> .... ;
>>
>> Forth-79/83 TYPE uses a signed count and prints nothing in the case of 0< .
>> Presumably this was to handle computed counts - rather than '+n should be
>> enough for anyone'.
>>
>>> You mean printing „only” 50 gazillion characters in one go makes any
>>> practical difference?
>>>
>>>> Make a distinction between mask and integers.
>>>> shifting works on masks, inverting works on mask.
>>>> It has been pointed out that multiple precision is the one exception
>>>> that really need unsigned numbers.
>>>
>>> In Forth that distinction is a matter of interpretation.
>>
>> When I see forth code in which addresses are compared using signed operators
>> it raises a red flag.
>>
>
> Me too. In the circumstance that I sit on a 16 bit Forth where the memory is
> fully occupied and I'm using a largish arrays.
> On all other cases I'll rather keep my red flags dry for if it really matters.
Unsigned numbers and operators didn't vanish when 32-bit systems arrived. All