Sujet : Re: bye with exit status
De : achowe (at) *nospam* snert.com (Anthony Howe)
Groupes : comp.lang.forthDate : 06. Nov 2024, 17:51:16
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vgg6q4$26lgs$1@dont-email.me>
References : 1
User-Agent : Mozilla Thunderbird
On 2024-11-06 07:12, Ruvim wrote:
For example, the following code fragments have stack effect ( n -- ⊥ )
and use n as the process exit status:
SwiftForth "exitstatus ! bye"
VfxForth "exitcode ! bye"
Don't like this behaviour; it comes off like a side-effect.
Gforth "(bye)"
I'd be content with `(bye)`.
ciforth "exit-code ! bye"
mf3 "sysexit"
Post4 "bye-code"
Just because there was nothing in the standard and I was not aware of what others did. I had considered `OSEXIT` or `EXIT-TO-HOST`, but neither of these come off as related to `BYE` when you see the name.
(bye)
bye-code
bye-status
bye-exit
bye-bye ( ok I'm getting silly; point is it should relate to BYE )
SP-Forth "halt"
I do _not_ like this choice, because I associate "halt" with system halt, ie. `shutdown -h now` or `halt(1)`.
And certainly not `hcf`.
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.
-- Anthony C Howeachowe@snert.com BarricadeMX & Miltershttp://nanozen.snert.com/ http://software.snert.com/