From p.singleton@keele.ac.uk  Wed Aug 16 18:14:26 2000
Received: from mail2.svr.pol.co.uk (mail2.svr.pol.co.uk [195.92.193.210])
	by swi.psy.uva.nl (8.9.3/8.9.3) with ESMTP id SAA20999
	for <prolog@swi.psy.uva.nl>; Wed, 16 Aug 2000 18:14:10 +0200 (MET DST)
Received: from modem4294967211.environment.dialup.pol.co.uk ([195.92.1.213] helo=keele.ac.uk)
	by mail2.svr.pol.co.uk with esmtp (Exim 3.13 #0)
	id 13P5pg-0008A6-00
	for prolog@swi.psy.uva.nl; Wed, 16 Aug 2000 17:14:24 +0100
Message-ID: <399ABD5F.8A0A1BA5@keele.ac.uk>
Date: Wed, 16 Aug 2000 17:12:15 +0100
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>
Subject: export foreign procs from a module?
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Can I export foreign functions from a module?

I have a module file whose module/2 directive exports some procs
which are loaded by

  :- initialization(load_foreign_library(jni)).

and the sutoloader complains about them being undefined,
although afterwards they seem to work OK.

Also, can I have "private" foreign functions of the same name in
different modules?

Paul Singleton

