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,737 of 117,927   
   albert@spenarnc.xs4all.nl to no.email@nospam.invalid   
   Re: Avoid treating the stack as an array   
   15 Sep 24 11:14:53   
   
   In article <87cyl6396z.fsf@nightsong.com>,   
   Paul Rubin   wrote:   
   >dxf  writes:   
   >> You have the source to my app.  Perhaps you can nominate where locals   
   >> could have been used to better effect.   
   >   
   >  : EMITS ( n char -- )  swap 0 ?do dup emit loop drop ;   
   >   
   >could be written:   
   >   
   >  : EMITS {: n char -- :} n 0 ?do char emit loop ;   
      
   I think TYPE should be the primitive and EMIT should   
   be handle a 1 char string.   
      
   : EMIT DSP@ 1 TYPE DROP ;   
      
   Imagine that you have concurrent tasks and one will write   
   in red, the other in blue. You could lock up the terminal   
   with undefined escape sequence.   
      
   Groetjes Albert   
   --   
   Temu exploits Christians: (Disclaimer, only 10 apostles)   
   Last Supper Acrylic Suncatcher - 15Cm Round Stained Glass- Style Wall   
   Art For Home, Office And Garden Decor - Perfect For Windows, Bars,   
   And Gifts For Friends Family And Colleagues.   
      
   --- 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