From e.j.sommer@kpn.com  Wed Feb  2 22:53:26 2000
Received: from smtp1.hetnet.nl (smtp1.hetnet.nl [145.7.225.1])
	by swi.psy.uva.nl (8.9.3/8.9.3) with ESMTP id WAA20930
	for <prolog@swi.psy.uva.nl>; Wed, 2 Feb 2000 22:53:25 +0100 (MET)
Received: from hetnet.nl ([194.151.104.153]) by smtp1.hetnet.nl  with Microsoft SMTPSVC(5.5.1877.327.32);
	 Wed, 2 Feb 2000 22:50:45 +0100
Received: from thebe ([195.121.153.253]) by hetnet.nl  with Microsoft SMTPSVC(5.5.1877.327.32);
	 Wed, 2 Feb 2000 22:41:50 +0100
Message-ID: <000201bf6dc6$8f0fe900$0115a8c0@thebe>
Reply-To: "Eelco J. Sommer" <e.j.sommer@kpn.com>
From: "Eelco J. Sommer" <e.j.sommer@kpn.com>
To: <prolog@swi.psy.uva.nl>
Subject: foreign_library implementation question
Date: Wed, 2 Feb 2000 22:43:23 +0100
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 4.72.3110.1
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3

A burning question:

From my foreign_library C file, I want to register/map several prolog
predicates to the same C function. Within this C function I want to
determine the (name of the) actual calling predicate. Can this be done?

Background: I want to be able to generate predicates dynamically, and handle
them using a generic handler.

Thanks,
Eelco Sommer

EMail: e.j.sommer@kpn.com


