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,938 of 117,927   
   Ruvim to All   
   bye with exit status   
   06 Nov 24 16:12:29   
   
   From: ruvim.pinka@gmail.com   
      
   Many Forth systems running under an operating system provide   
   system-specific capabilities to terminate with an exit status [1].   
      
   For example, the following code fragments have stack effect ( n -- ⊥ )   
   and use n as the process exit status:   
      
      SwiftForth "exitstatus ! bye"   
      VfxForth   "exitcode ! bye"   
      Gforth     "(bye)"   
      ciforth    "exit-code ! bye"   
      mf3        "sysexit"   
      Post4      "bye-code"   
      SP-Forth   "halt"   
      
   Could you suggest some names for the word with this functionality so   
   that one of them can be standardized?   
      
   This word should not output any messages.   
      
      
   There are at least three different notions of premature termination of   
   code execution:   
      — return from a Forth definition (to the caller)   
      — terminate a thread/task   
      — terminate the process   
   And they should not be confused.   
      
      
   [1]    
      
      
   --   
   Ruvim   
      
   --- 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