Re: QUIT and ABORT

Liste des GroupesRevenir à cl forth 
Sujet : Re: QUIT and ABORT
De : dxforth (at) *nospam* gmail.com (dxf)
Groupes : comp.lang.forth
Date : 20. May 2025, 06:49:49
Autres entêtes
Organisation : i2pn2 (i2pn.org)
Message-ID : <5b4885b76e5d683a9a55c51f6905d50aa86192ac@i2pn2.org>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
User-Agent : Mozilla Thunderbird
On 19/05/2025 8:52 pm, Ruvim wrote:
On 2025-05-18 18:27, dxf wrote:
On 18/05/2025 6:16 pm, Ruvim wrote:
...
Note that in `error` you don't transfer control to `(abort)` only in the case of `-56`.
>
I transfer control to (abort) except in the case of -56 where it passes to (quit).
 
Hence, `-56` is a special case in your implementation.

No more special than what ANS did for -1 and -2 .

Another question is how are `evaluate` and `included` implemented?
>
I assume they use `catch`.
>
INCLUDE uses CATCH , EVALUATE does not.
 
If any of the following tests fail, then `evaluate` (or `throw`) is not compliant:
 
  t{ 9 s" 1 throw" ' evaluate catch nip nip -> 9 1 }t
  t{ char | parse s" 1 throw" ' evaluate catch nip nip| evaluate -> 1 }t
 
or
 
  9 s" 1 throw" ' evaluate catch nip nip swap . .
  char | parse 9 s" 1 throw" ' evaluate catch nip nip| evaluate swap . .
  \ both lines shall print "9 1" in a standard Forth system.

Yes, my EVALUATE has limitations.

Then your Forth system probably shows the following behavior in its terminal:
>
   999 -56 throw
      ok  999 <
>
   s" 999 -56 throw" evaluate
      ok
>
Of course, the first case shows a non-standard behavior.
>
The first case is correct behaviour for a system that implements a catchable QUIT.
 
Yes, it can be correct in the sense that it is in accordance with your system documentation. But it is not in accordance with the ANS Forth standard (as well as Forth-2012).

Table 9.2 expressly allows systems to implement a catchable QUIT.
 
You interpret the reservation of `-56` for `quit` as a provision to make `quit` catchable.

Correct.  I'm grateful for serious opponents as they do my homework for me.
If I had any concerns about a catchable QUIT beforehand, your posts have
resolved them.  I've seen no convincing rationale that QUIT should not have
the same entitlement as ABORT and ABORT" .

But catchable `quit` is not ANS Forth compliant. And your deviation in the behavior of `throw` is also not ANS compliant.

That would be your interpretation.  You can resolve it for future standards
by putting it to the committee.


Date Sujet#  Auteur
27 Mar 25 * "The Best Programming Language for the End of the World"200Alexis
27 Mar 25 +* Re: "The Best Programming Language for the End of the World"5Martin Nicholas
28 Mar 25 i`* Re: "The Best Programming Language for the End of the World"4Alexis
28 Mar 25 i `* Re: "The Best Programming Language for the End of the World"3Martin Nicholas
30 Mar 25 i  +- Re: "The Best Programming Language for the End of the World"1Alexis
30 Mar 25 i  `- Re: "The Best Programming Language for the End of the World"1Bernd Linsel
28 Mar 25 +* Re: "The Best Programming Language for the End of the World"7anthk
29 Mar 25 i`* Re: "The Best Programming Language for the End of the World"6mhx
29 Mar 25 i +- Re: "The Best Programming Language for the End of the World"1dxf
30 Mar 25 i +* Re: "The Best Programming Language for the End of the World"3anthk
5 Apr 25 i i+- Re: "The Best Programming Language for the End of the World"1anthk
6 Apr 25 i i`- Re: "The Best Programming Language for the End of the World"1sjack
31 Mar 25 i `- Re: "The Best Programming Language for the End of the World"1John Ames
30 Mar 25 +* Re: "The Best Programming Language for the End of the World"88sjack
1 Apr 25 i`* Re: "The Best Programming Language for the End of the World"87dxf
29 Apr 25 i `* Re: Why dial-a-standard is not a thing in Forth86Hans Bezemer
30 Apr 25 i  +* Re: Why dial-a-standard is not a thing in Forth82dxf
30 Apr 25 i  i+* Re: Why dial-a-standard is not a thing in Forth79Hans Bezemer
1 May 25 i  ii`* Re: Why dial-a-standard is not a thing in Forth78dxf
1 May 25 i  ii +* Re: Why dial-a-standard is not a thing in Forth3John Doe
1 May 25 i  ii i+- Re: Why dial-a-standard is not a thing in Forth1Stephen Pelc
1 May 25 i  ii i`- Re: Why dial-a-standard is not a thing in Forth1Anton Ertl
1 May 25 i  ii `* Re: Why dial-a-standard is not a thing in Forth74Hans Bezemer
2 May 25 i  ii  +- Re: Why dial-a-standard is not a thing in Forth1dxf
3 May 25 i  ii  `* Re: Why dial-a-standard is not a thing in Forth72dxf
3 May 25 i  ii   +* QUIT and ABORT (was: Why dial-a-standard is not a thing in Forth)70Anton Ertl
3 May 25 i  ii   i+- Re: QUIT and ABORT1dxf
3 May 25 i  ii   i+* Re: QUIT and ABORT67dxf
3 May 25 i  ii   ii`* Re: QUIT and ABORT66Anton Ertl
4 May 25 i  ii   ii +* Re: QUIT and ABORT64dxf
4 May 25 i  ii   ii i`* Re: QUIT and ABORT63Anton Ertl
5 May 25 i  ii   ii i +- Re: QUIT and ABORT1dxf
5 May 25 i  ii   ii i +* Re: QUIT and ABORT56dxf
5 May 25 i  ii   ii i i`* Re: QUIT and ABORT55Ruvim
5 May 25 i  ii   ii i i +- Re: QUIT and ABORT1Ruvim
6 May 25 i  ii   ii i i +* Re: QUIT and ABORT3dxf
6 May 25 i  ii   ii i i i+- Re: QUIT and ABORT1Anton Ertl
6 May 25 i  ii   ii i i i`- Re: QUIT and ABORT1Ruvim
6 May 25 i  ii   ii i i `* Re: QUIT and ABORT50dxf
6 May 25 i  ii   ii i i  +* Re: QUIT and ABORT3Ruvim
6 May 25 i  ii   ii i i  i+- Re: QUIT and ABORT1Anton Ertl
6 May 25 i  ii   ii i i  i`- Re: QUIT and ABORT1dxf
6 May 25 i  ii   ii i i  `* Re: QUIT and ABORT46Anton Ertl
6 May 25 i  ii   ii i i   `* Re: QUIT and ABORT45dxf
7 May 25 i  ii   ii i i    `* Re: QUIT and ABORT44Ruvim
8 May 25 i  ii   ii i i     +* Re: QUIT and ABORT42dxf
8 May 25 i  ii   ii i i     i`* Re: QUIT and ABORT41Ruvim
9 May 25 i  ii   ii i i     i `* Re: QUIT and ABORT40dxf
9 May 25 i  ii   ii i i     i  `* Re: QUIT and ABORT39Ruvim
9 May 25 i  ii   ii i i     i   `* Re: QUIT and ABORT38dxf
9 May 25 i  ii   ii i i     i    +* Re: QUIT and ABORT2albert
10 May 25 i  ii   ii i i     i    i`- Re: QUIT and ABORT1dxf
9 May 25 i  ii   ii i i     i    `* Re: QUIT and ABORT35Ruvim
10 May 25 i  ii   ii i i     i     +- Re: QUIT and ABORT1dxf
13 May 25 i  ii   ii i i     i     `* Re: QUIT and ABORT33Ruvim
14 May 25 i  ii   ii i i     i      `* Re: QUIT and ABORT32dxf
14 May 25 i  ii   ii i i     i       `* Re: QUIT and ABORT31Ruvim
15 May 25 i  ii   ii i i     i        `* Re: QUIT and ABORT30dxf
16 May 25 i  ii   ii i i     i         `* Re: QUIT and ABORT29Ruvim
16 May 25 i  ii   ii i i     i          `* Re: QUIT and ABORT28dxf
16 May 25 i  ii   ii i i     i           `* Re: QUIT and ABORT27Ruvim
17 May 25 i  ii   ii i i     i            `* Re: QUIT and ABORT26dxf
17 May 25 i  ii   ii i i     i             `* Re: QUIT and ABORT25Ruvim
17 May 25 i  ii   ii i i     i              `* Re: QUIT and ABORT24dxf
17 May 25 i  ii   ii i i     i               `* Re: QUIT and ABORT23Ruvim
18 May 25 i  ii   ii i i     i                `* Re: QUIT and ABORT22dxf
18 May 25 i  ii   ii i i     i                 +* Re: QUIT and ABORT2Anton Ertl
18 May 25 i  ii   ii i i     i                 i`- Re: QUIT and ABORT1dxf
18 May 25 i  ii   ii i i     i                 `* Re: QUIT and ABORT19Ruvim
18 May 25 i  ii   ii i i     i                  `* Re: QUIT and ABORT18dxf
19 May 25 i  ii   ii i i     i                   `* Re: QUIT and ABORT17Ruvim
20 May 25 i  ii   ii i i     i                    `* Re: QUIT and ABORT16dxf
24 May 25 i  ii   ii i i     i                     `* Re: QUIT and ABORT15Ruvim
24 May 25 i  ii   ii i i     i                      +* Re: QUIT and ABORT9mhx
24 May 25 i  ii   ii i i     i                      i+* Re: QUIT and ABORT5Ruvim
24 May 25 i  ii   ii i i     i                      ii`* Re: QUIT and ABORT4mhx
24 May 25 i  ii   ii i i     i                      ii +- Re: QUIT and ABORT1Ruvim
24 May 25 i  ii   ii i i     i                      ii +- Re: QUIT and ABORT1Anton Ertl
24 May 25 i  ii   ii i i     i                      ii `- Re: QUIT and ABORT1albert
24 May 25 i  ii   ii i i     i                      i`* Re: QUIT and ABORT3Anton Ertl
11 Jun 25 i  ii   ii i i     i                      i `* Re: QUIT and ABORT2Gerry Jackson
12 Jun 25 i  ii   ii i i     i                      i  `- Re: QUIT and ABORT1Anton Ertl
24 May 25 i  ii   ii i i     i                      +- Re: QUIT and ABORT1albert
24 May 25 i  ii   ii i i     i                      `* Re: QUIT and ABORT4dxf
24 May 25 i  ii   ii i i     i                       `* Re: QUIT and ABORT3Ruvim
25 May 25 i  ii   ii i i     i                        `* Re: QUIT and ABORT2dxf
26 May 25 i  ii   ii i i     i                         `- Re: QUIT and ABORT1dxf
8 May 25 i  ii   ii i i     `- Re: QUIT and ABORT1Ruvim
5 May 25 i  ii   ii i `* Re: QUIT and ABORT5mhx
6 May 25 i  ii   ii i  +- Re: QUIT and ABORT1dxf
7 May 25 i  ii   ii i  `* Re: QUIT and ABORT3albert
7 May 25 i  ii   ii i   `* Re: QUIT and ABORT2minforth
7 May 25 i  ii   ii i    `- Re: QUIT and ABORT1dxf
4 May 25 i  ii   ii `- Re: QUIT and ABORT1dxf
4 May 25 i  ii   i`- Re: QUIT and ABORT (was: Why dial-a-standard is not a thing in Forth)1albert
5 May 25 i  ii   `- Re: Why dial-a-standard is not a thing in Forth1dxf
30 Apr 25 i  i`* Re: Why dial-a-standard is not a thing in Forth2sjack
1 May 25 i  i `- Re: Why dial-a-standard is not a thing in Forth1dxf
30 Apr 25 i  `* Re: Why dial-a-standard is not a thing in Forth3albert
30 Apr 25 i   `* Re: Why dial-a-standard is not a thing in Forth2Hans Bezemer
30 Apr 25 i    `- Re: Why dial-a-standard is not a thing in Forth1mhx
4 Apr 25 +- Re: "The Best Programming Language for the End of the World"1dxf
5 Apr 25 `* Re: "The Best Programming Language for the End of the World"98dxf

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal