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,649 of 117,927   
   dxf to Hans Bezemer   
   Re: Conditional compilation   
   27 Oct 25 15:30:42   
   
   From: dxforth@gmail.com   
      
   On 27/10/2025 1:29 am, Hans Bezemer wrote:   
   > On 4tH, it doesn't even compile:   
   >   
   > $ pp4th -x pptest10.4th   
   > Compiling;    Word 29: Incomplete declaration   
   >   
   > After adding the [THEN]:   
   >   
   > $ pp4th -x pptest10.4th   
   > 1 (TOS)   
   >   
   > Decompile:   
   >   
   > 4tH message: Incomplete declaration at word 29   
   > Object size: 29 words   
   > String size: 7 chars   
   > Variables  : 0 cells   
   > Strings    : 0 chars   
   > Symbols    : 1 names   
   > Reliable   : No   
   >   
   >   Addr| Opcode                        Operand     
   Argument   
   >   
   >     20| rot                           
    Â Â Â Â Â Â Â  0   
   >     21| +literal                           -1   
   >     22| branch                             13   
   >     23| drop                          
   Â Â Â Â Â Â Â  0   
   >     24| ."                           
   Â Â Â Â Â Â Â Â  0   (TOS)   
   >     25| drop                          
   Â Â Â Â Â Â Â  0   
   >     26| cr                           
   Â Â Â Â Â Â Â Â  0   
   >     27| exit                          
   Â Â Â Â Â Â Â  0 <<<< end of .S definition   
   >     28| literal                             1   
   >   
   > Message: Incomplete declaration (#23 M4NODECL)   
   > Words: All defining words and compiler directives   
   > Example: 10 CONSTANT CONSTANT NAME   
   > Cause: 4. An [IF] is not balanced by a [THEN].   
   >   
   > I forgot all about this thingy!   
      
   I have to admit to a beginner's mistake.  Using screens, [if] [then] almost   
   never   
   arises and I got bit.  It started with relocating 0 [if] .  But instead of   
   deleting   
   the original I did this:  \ 0 [if]   
   From there, it only got worse.  Live and learn.   
      
   --- 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