on 10.07.00 12:59, Samir Genaim at genaim(a)cs.bgu.ac.il wrote:
So one solution to your problem is the following:
:- module(f,[test/0]).
:- use_module(library(compiler)).
test :- my_compile(c).
my_compile(File) :- set_nodebug_mode(File), compiler:ensure_loaded(File).
Or just use ensure_loaded directly (its define in library(compiler)).
Thanks, it works as expected. I was looking for a ciaosh module that, reading the reference manual, exports a ensure_loaded/1 predicate. I should have looked in the other modules used.
Regards,
Paulo
----------------------------------------------------------- Paulo Jorge Lopes de Moura Dep. of Mathematics and Informatics Office 4.32 Ext. 3251 University of Beira Interior Phone: +351 275319700 6201-001 Covilhã Fax: +351 275319732 Portugal
mailto:pmoura(a)noe.ubi.pt http://www.ci.uc.pt/logtalk/pmoura.html -----------------------------------------------------------