Skip to content

Cannot reexport module from package? #97

@aherranz

Description

@aherranz

I am loading the rfuzzy package and I get an error message "reexport/1 directive not allowed in shell"

Ciao 1.23.0 [LINUXx86_64]
?- use_package(rfuzzy).
{Using package /home/angel/.ciao/RFuzzy/lib/rfuzzy/rfuzzy.pl
{Using package /home/angel/.ciaoroot/v1.23.0-m1/core/lib/hiord/hiord.pl
Note: module hiord_rt already in executable, just made visible
}
ERROR: (lns 5-6) reexport/1 directive not allowed in shell
Note: module aggregates already in executable, just made visible
Note: module terms already in executable, just made visible
Note: module basic_props already in executable, just made visible
{Including /home/angel/.ciao/RFuzzy/lib/rfuzzy/rfuzzy_ops.pl
}


INFO: Rfuzzy (Ciao Prolog package to compile Rfuzzy programs into a pure Prolog programs):  compiling ...    

}

yes
?- 

The main module of the library is this one:

:- package(rfuzzy).

:- use_package(hiord).

:- use_module(library(rfuzzy/rfuzzy_rt)). 
:- reexport(library(rfuzzy/rfuzzy_rt)).

:- use_module(library(aggregates), [findall/3]).
:- use_module(library(terms),[copy_args/3]).
:- use_module(engine(basic_props), [list/1]).
:- include(library(rfuzzy/rfuzzy_ops)).

:- load_compilation_module(library(rfuzzy/rfuzzy_tr)).
:- add_sentence_trans(rfuzzy_tr:rfuzzy_trans_sentence/3, 730).

I don't know the implication of the error, I am not sure if predicates are reexported or not. Can I avoid such a message? (I can update the rfuzzy library).

Regards.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions