From a2574@dis.ulpgc.es  Wed Nov  3 10:50:23 1999
Received: from serdis.dis.ulpgc.es (serdis.dis.ulpgc.es [193.145.145.17])
	by swi.psy.uva.nl (8.9.3/8.9.3) with ESMTP id KAA15069
	for <prolog@swi.psy.uva.nl>; Wed, 3 Nov 1999 10:50:23 +0100 (MET)
Received: from dis.ulpgc.es (labsopa.dis.ulpgc.es [193.145.145.50])
	by serdis.dis.ulpgc.es (8.9.2/8.9.2) with ESMTP id JAA316815
	for <prolog@swi.psy.uva.nl>; Wed, 3 Nov 1999 09:50:26 GMT
Sender: a2574@serdis.dis.ulpgc.es
Message-ID: <382012EF.14C04855@dis.ulpgc.es>
Date: Wed, 03 Nov 1999 10:48:15 +0000
From: Jose Luis Fernandez Perez <a2574@dis.ulpgc.es>
X-Mailer: Mozilla 4.08 [en] (X11; I; Linux 2.0.36 i686)
MIME-Version: 1.0
To: "prolog@swi.psy.uva.nl" <prolog@swi.psy.uva.nl>
Subject: Constructing terms for an external module
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

I need to construct a term to be called. Te term is in an external
module, then i need to refer it
using the functor ":".
    module:predicate
    For example, the term has arity 2,. I want to call
        module:predicate(X,Y)
    but constructing it.
    I was trying it with
        atom_to_term('module:predicate',L,_),Term =.. [L,X,Y].
    to create
    Term =  example:predicate(X,Y).
But it does not succed, How can I construct predicates for an external
module?



