Hi,
I'm having a few problems getting modules to work in ciao. I'd appreciate somebody pointing what I'm doing wrong. So I have one module in a file called plusdebug.pl which is something like this:
:- module(plusdebug,_)
debugger([]). debugger(Lst) :- ...
If I import this into the top level with ?- use_module(plusdebug).
Then I can use the predicate fine. If I try to use it within a file called analyser.pl, then I get problem. The second file has:
:- module(analyser,_) :- use_module(plusdebug).
... in a predicate later debugger([some,data]), ...
The predicate in analyser.pl always fails. Am I missing something about how modules work and how to import predicates from one module into another?
Amoss
PS The documentation is quite good, but in places (like the module section) it would be really good to have some concrete examples.
============================================================================== Message: Address: Action: help majordomo(a)clip.dia.fi.upm.es Info. on useful commands subscribe ciao-users-request(a)clip.dia.fi.upm.es Subscribe to this list unsubscribe ciao-users-request(a)clip.dia.fi.upm.es Unsubscribe from this list <whatever> ciao-users(a)clip.dia.fi.upm.es Send message to list ----------------------------------------------------------------------------- Archived messages: http://www.clip.dia.fi.upm.es/Mail/ciao-users/ -----------------------------------------------------------------------------