Newsgroups: comp.lang.prolog
Path: cantaloupe.srv.cs.cmu.edu!das-news2.harvard.edu!news2.near.net!howland.reston.ans.net!news.sprintlink.net!EU.net!Germany.EU.net!Munich.Germany.EU.net!ecrc!lyra!micha
From: micha@ecrc.de (Micha Meier)
Subject: Re: Error conditions
Message-ID: <Cznwvy.KFr@ecrc.de>
Sender: news@ecrc.de
Reply-To: micha@ecrc.de
Organization: European Computer-Industry Research Centre
References: <citrin-2111941346240001@ecemac-citrin.colorado.edu>
Date: Tue, 22 Nov 1994 09:26:21 GMT
Lines: 24

In article 2111941346240001@ecemac-citrin.colorado.edu, citrin@cs.colorado.edu (Wayne Citrin) writes:
>In article <3aqsg8$q6i@lightning.ditc.npl.co.uk>, rss@seg.npl.co.uk (Roger
>Scowen) wrote:
>> The Draft International Standard for Prolog (ISO/IEC DIS 13211-1)
>> distinguishes different kinds of failure and regards some of them as
>> errors so that such mistakes will be easier to track down and correct.
..>
>This is good.  A next step would be for the user to be able to define
>error conditions for user-defined predicates.
>

Since user predicates are written in Prolog, the user can already define
error conditions. All one has to do is to insert the appropriate
checks in your code.

--Micha


---
Micha Meier			------------------------------------------------
ECRC, Arabellastr. 17		The opinions expressed above are private
D-81925 Munich 81		and may not reflect those of my employer.
micha@ecrc.de, Tel. +49-89-92699-108, Fax  +49-89-92699-170

