embedded systems developers tools, cross compilers
  Home  |   SwiftX Archive  |   SwiftForth Archive  |

Re: ABORT = f(THROW)

From: Elizabeth D. Rather <erather_at_forth.com>
Date: Thu, 11 Jul 2002 12:48:25 -0700

At 02:32 PM 7/11/02 -0500, Bulgrien, Dennis wrote:

>What is -1 THROW supposed to do if CATCH wasn't run? THROW is treated as an
>ABORT and ABORT is defined with THROW . This seems to be circular
>reasoning. SwiftX.pdf does not describe ABORT or THROW .
>
>________________________________________
>Handbook.pdf:
>
>2.6 EXCEPTION HANDLING
> ...
>If a non-zero THROW occurs without a corresponding application program CATCH
>to return to, it is
>treated as an ABORT.
>
>________________________________________
>SwiftX\Src\Except.f:
>
>: ABORT ( -- ) -1 THROW ;
>----------------------------------------------------------------------

The Handbook note applies to interactive Forths, e.g. SwiftForth and your
SwiftX host. Your target application is totally your responsibility. If
you're
using THROW anywhere in your application, you should provide CATCHes
as appropriate. At minimum, you should have a CATCH at the very top
of your application, running the word that makes it all go.

Cheers,
Elizabeth

==================================================
Elizabeth D. Rather (US & Canada) 800-55-FORTH
FORTH Inc. +1 310-491-3356
5155 W. Rosecrans Ave. #1018 Fax: +1 310-978-9454
Hawthorne, CA 90250
http://www.forth.com

"Forth-based products and Services for real-time
applications since 1973."
==================================================

----------------------------------------------------------------------
swiftx_at_forth.com The SwiftX programming discussion email list
To unsubscribe, send subject "unsubscribe swiftx" to listar_at_forth.com
For help with listar commands, send subject "help" to listar_at_forth.com
Archives are located at http://www.forth.com/swiftx -- check them out!
----------------------------------------------------------------------
THIS LIST IS NOT FOR BUG REPORTS! Send bug reports to support_at_forth.com.
Received on Thu Jul 11 2002 - 12:47:32 PDT

This archive was generated by hypermail 2.2.0 : Mon Dec 01 2008 - 03:04:47 PST