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 117,395 of 117,927   
   albert@spenarnc.xs4all.nl to minforth@gmx.net   
   Re: Parsing timestamps?   
   03 Jul 25 14:13:02   
   
   In article ,   
   minforth   wrote:   
   >Am 03.07.2025 um 01:59 schrieb Paul Rubin:   
   >> Hans Bezemer  writes:   
   >>> 1. Adding general locals is trivial. It takes just one single line of   
   >>> Forth.   
   >>   
   >> I don't see how to do it in one line, and trivial is a subjective term.   
   >> I'd say in any case that it's not too difficult, but one line seems   
   >> overoptimistic.  Particularly, you need something like (LOCAL) in the   
   >> VM.  The rest is just some extensions to the colon compiler.  Your   
   >> mention of it taking 3-4 screens sounded within reason to me, and I   
   >> don't consider that to be a lot of code.   
   >   
   >I would not implement locals for simple integers only. Forth has enough   
   >stack gymnastics words for that.   
   >   
   >IMO locals only make sense if you can at least additionally handle   
   >floats and dynamic strings, preferably also structs and arrays.   
   >Such an implementation is certainly not trivial.   
   >   
      
   Second that. iforth sports not only LOCAL (values), but also   
   FLOCAL DLOCAL DFLOCAL. You end up establishing a whole menagery   
   of shadow Forth words.   
      
   It is much simpler to allow definitions in a [ .. ] sequence.   
      
   Groetjes Albert   
   --   
   The Chinese government is satisfied with its military superiority over USA.   
   The next 5 year plan has as primary goal to advance life expectancy   
   over 80 years, like Western Europe.   
      
   --- 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