home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.forth      Forth programmers eat a lot of Bratwurst      117,927 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 116,593 of 117,927   
   Krishna Myneni to Krishna Myneni   
   Re: copying and pasting from pdf to Fort   
   01 Jul 24 18:43:09   
   
   From: krishna.myneni@ccreweb.org   
      
   On 7/1/24 18:33, Krishna Myneni wrote:   
   > On 7/1/24 06:47, mhx wrote:   
   >> Krishna Myneni wrote:   
   >> [..]   
   >>> For an hour or so I was chasing down an imaginary bug in the   
   >>> (non-standard) word NUMBER? used to convert a counted string into a   
   >>> signed double length number.   
   >>   
   >> I know about '-', and single/double quote characters. They are a   
   >> nuisance not only in Forth.   
   >>   
   >> Was it something else?   
   >>   
   >> -marcel   
   >   
   > It was a large number containing commas. I deleted the commas.   
   >   
   > The text is pasted here:   
   >   
   > −170,141,183,460,469,231,731,687,303,715,884,105,728   
   >   
   > It appears to have pasted properly, but there is a difference between   
   > Line 1 and Line 2. The latter is entered by hand.   
   > \ Line 1   
   > c" −170141183460469231731687303715884105728" NUMBER? .s   
   >   
   >          0   
   >          0   
   >          0   
   >   ok   
   > drop 2drop  \ Now enter by hand   
   >   ok   
   > \ Line 2   
   > c" -170141183460469231731687303715884105728" NUMBER? .s   
   >   
      
   Ok, when I apply COUNT I see there is a 2 character difference between   
   lines 1 and 2. If you look closely, the minus sign is different between   
   the two! The first line must have copied a UTF-8 encoded unicode   
   character for the minus sign.   
      
   --   
   KM   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca