Sujet : Re: bye with exit status
De : clf (at) *nospam* 8th-dev.com (Ron AARON)
Groupes : comp.lang.forthDate : 08. Nov 2024, 08:08:29
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vgkddd$33ncp$1@dont-email.me>
References : 1 2 3 4 5 6
User-Agent : Mozilla Thunderbird
8th uses the word "die", e.g. 1 die
The word "bye" is 0 die.
On 07/11/2024 20:50, Anthony Howe wrote:
On 2024-11-07 06:56, Ruvim wrote:
I would like to find a more appropriate name for this word than "bye- status".
(bye) ( u -- )
Seems apropos, short, to the point and indicative of an internal word. Default can be defined to return to the host OS with an exit status `u`, but maybe be replaced in (unhosted) environments to perform some sort of system reset, power cycle, or other implementation defined system reset.
`terminate` is a good candidate, but it's unclear what it should terminate — a thread/task, or a process, or the own process, or the own thread.
TERMINATE could have the same meaning as SIGTERM *:
SIGTERM (Terminated)
This signal is the default signal sent by kill(1) and represents a
user or administrator request that a program shut down [normally].
* Other signals result in abnormal termination.