Re: bye with exit status

Liste des GroupesRevenir à cl forth 
Sujet : Re: bye with exit status
De : mhx (at) *nospam* iae.nl (mhx)
Groupes : comp.lang.forth
Date : 06. Nov 2024, 19:27:26
Autres entêtes
Organisation : novaBBS
Message-ID : <c52c3b51c000c9139d938079e3cfe988@www.novabbs.com>
References : 1 2 3
User-Agent : Rocksolid Light
iForth:
T: BYE  ( -- ) 0 TERMINATE T; ANS
TERMINATE                                              IFORTH
     ( n -- )
     Disconnect the server from the processor. Remove the server
     program on the host computer and let the server return the
     implementation defined error code n to the operating system.
     See also: BYE
 : TERMINATE
     ??CR [ =FILES ] [IF] FLUSH BLOCK-FID @ ?DUP
                          IF CLOSE-FILE DROP 0 BLOCK-FID ! THEN
                   [THEN]
     BYE! T;  ( error-level -- )
BYE!                                                 IFORTH
     ( -- )
     Send the 'disconnect server' command over the boot link to the
     server (if there is one). The server disconnects upon receiving
     this message and exits itself. All knowledge about open files
     is lost. If there is no server this command is the same as BYE .
     See also: BYE
-marcel
Same as remarked by minforth: there is a exit-handler chain in
which the user can plug arbitrary routines.
The chained handlers were very popular with Hanno Schwalm because
he loved generating executables. I don't use them myself because
iForth is the default shell for my main activities.
-marcel

Date Sujet#  Auteur
6 Nov 24 * bye with exit status19Ruvim
6 Nov 24 +- Re: bye with exit status1albert
6 Nov 24 `* Re: bye with exit status17Anthony Howe
6 Nov 24  `* Re: bye with exit status16minforth
6 Nov 24   `* Re: bye with exit status15mhx
7 Nov 24    +* Re: bye with exit status10Ruvim
7 Nov 24    i`* Re: bye with exit status9Anthony Howe
7 Nov 24    i +* Re: bye with exit status5Ruvim
8 Nov 24    i i+- Re: bye with exit status1mhx
8 Nov 24    i i`* Re: bye with exit status3Anthony Howe
8 Nov 24    i i `* Re: bye with exit status2Ruvim
8 Nov 24    i i  `- Re: bye with exit status1Anthony Howe
8 Nov 24    i +- Re: bye with exit status1Ron AARON
8 Nov 24    i `* Re: bye with exit status2albert
8 Nov 24    i  `- Re: bye with exit status1minforth
8 Nov 24    `* Re: bye with exit status4Anton Ertl
8 Nov 24     `* Re: bye with exit status3Ruvim
8 Nov 24      `* Re: bye with exit status2Anton Ertl
8 Nov 24       `- Re: bye with exit status1Ruvim

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal