From p.singleton@keele.ac.uk Fri Feb 16 22:49:32 2001
Received: from scooby.lineone.net (doggy.lineone.net [194.75.152.224])
	by swi.psy.uva.nl (8.11.2/8.11.2) with ESMTP id f1GLnMZ24170
	for <prolog@swi.psy.uva.nl>; Fri, 16 Feb 2001 22:49:32 +0100 (MET)
Received: from keele.ac.uk (host213-123-49-162.dialup.lineone.co.uk [213.123.49.162])
	by scooby.lineone.net (8.9.3/8.9.3) with ESMTP id VAA28441
	for <prolog@swi.psy.uva.nl>; Fri, 16 Feb 2001 21:48:55 GMT
Message-ID: <3A8D1510.E75FFC99@keele.ac.uk>
Date: Fri, 16 Feb 2001 11:54:56 +0000
From: Paul Singleton <p.singleton@keele.ac.uk>
Organization: SmartArts Computing Consultancy
X-Mailer: Mozilla 4.74 [en] (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
To: SWI Prolog <prolog@swi.psy.uva.nl>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Subject: [SWIPL] exceptions in PL_call_predicate()

I have a foreign predicate which calls PL_call_predicate(): if I find
that this call has raised an exception, I want to just fail out of the
foreign predicate and let Prolog handle the exception.

Is this safe?  good practice?

Paul Singleton


