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,678 of 117,927   
   dxf to albert@spenarnc.xs4all.nl   
   Re: What use is SLITERAL?   
   04 Nov 25 13:26:02   
   
   From: dxforth@gmail.com   
      
   On 3/11/2025 11:40 pm, albert@spenarnc.xs4all.nl wrote:   
   > What is the use case for SLITERAL.   
   >   
   > : test [ "AAP" ] SLITERAL ;   
   >   
   > Assuming "AAP" is made permanent you can as wel say   
   >   
   > : test [ "AAP" ] DLITERAL ;   
   >   
   > or   
   > : test "AAP" ;   
   >   
   > or   
   > "AAP" 2CONSTANT q   
   > : test q TYPE ;   
   > or   
   > DATA q 3 , &A C, &A C, &P C,   
   > : test q $@ TYPE ;   
   >   
   > I can't think if a case where SLITERAL is *not* preceeded by   
   > [ ] because : is allowed to leave colon-sys .   
      
   As with LITERAL, SLITERAL is designed to compile a computed object?   
      
   : module ( u siz "name" -- u2 )   
     over + tuck 1-  2constant   
     does> 2@ [ loadfile -path ] sliteral loaded ;   
      
   --- 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