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,116 of 117,927   
   dxf to sjack   
   Re: Fetch string from comment   
   05 Mar 25 09:46:14   
   
   From: dxforth@gmail.com   
      
   On 5/03/2025 8:02 am, sjack wrote:   
   > ...   
   > The enhanced comment is more robust than the existing string operators   
   > that you show in that any mix of printable characters can be contained   
   > in the comment and string operators that base on it. No breaking up   
   > text nor escaping characters needed (by the Forth):   
   >   
   > .( The function("bar") char ) emit .(  is to be used) \ standard, bah   
   > .( The function("bar") is to be used)                 \ enhanced, ok   
   > ." Jack said " char " emit ." boo" char " emit .      \ standard, bah   
   > .( Jack said "boo")                                   \ enhanced, ok   
   >  @( echo -e "Hello World\!") /sys                     \ enhanced, ok   
      
   As " solutions go it has a charm to it.  The code is nicely trivial   
   albeit not idiot-proof ... ( ) needs to be balanced.   
      
   For me the other issue was non-graphic characters.  Unable to avoid it   
   I adopted a simplified form of 200x escapes whereby " becomes \22 .   
      
   --- SoupGate-DOS v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

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


(c) 1994,  bbs@darkrealms.ca