home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.fortran      Putting John Backus on a giant pedestal      5,127 messages   

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

   Message 4,648 of 5,127   
   Thomas Koenig to Lawrence D'Oliveiro   
   Re: =?UTF-8?Q?=E2=80=9CImage=E2=80=9D?=    
   26 Feb 24 21:25:32   
   
   From: tkoenig@netcologne.de   
      
   Lawrence D'Oliveiro  schrieb:   
   > On Mon, 26 Feb 2024 17:50:05 -0000 (UTC), Thomas Koenig wrote:   
   >   
   >> Lawrence D'Oliveiro  schrieb:   
   >>   
   >>> but a clue appears in the 2018 spec, section 11.4, “STOP and ERROR STOP   
   >>> statements”:   
   >>>   
   >>>     When an image is terminated by a STOP or ERROR STOP statement, its   
   >>>     stop code, if any, is made available in a processor-dependent   
   >>>     manner. If the stop-code is an integer, it is recommended that the   
   >>>     value be used as the process exit status, if the processor supports   
   >>>     that concept.   
   >>>   
   >>> So an image “terminates”, and returns a process “exit status”; this   
   >>> must mean that an “image” is equivalent to a “process”.   
   >>   
   >> No.   
   >   
   > But a process can only have one exit status, and an image can only have   
   > one stop code. If there is not a 1:1 correspondence between them, then   
   > what?   
      
   The answer is in the standard: "processor-dependent", so an   
   implementation is free to do whatever its writers feel like doing.   
   It could write to standard error, it could return an exit code,   
   or it could send a carrier pigeon (which would require the right   
   operational hardware) or an e-mail.   
      
   You're making the mistake of trying to fit a single concept to   
   something that is deliberately left as processor-dependent in the   
   standard.  It doesn't fit (as I explained in the part you snipped).   
      
   --- 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