Search found 7 matches

by DamienDeville
Sat Jan 11, 2020 7:38 pm
Forum: Help
Topic: Selective type loading?
Replies: 1
Views: 77

Selective type loading?

Is there a way to selectively load only some types of the types libraries (e.g., list) but not all?
by DamienDeville
Wed Jan 08, 2020 9:53 am
Forum: Help
Topic: Reference to unknown object: list
Replies: 10
Views: 151

Re: Reference to unknown object: list

Thank you for those clarifications. Too bad usage aliases are neither inherited nor imported though :) Now in the loader files what is the difference between the following two syntaxes? :- initialization(logtalk_load([lib1(loader), ... ,linN(loader)]). :- initialization(( logtalk_load(lib1(loader)),...
by DamienDeville
Wed Jan 08, 2020 12:21 am
Forum: Help
Topic: Reference to unknown object: list
Replies: 10
Views: 151

Re: Reference to unknown object: list

You only need to use uses/2 (or use_module/2) directives if you want implicit message sending (or module qualification). Some users like it, other users prefer explicit. I am using clpfd. Putting a clpfd:: prefix in front of every occurence of its very concise operators #=, #=> etc. rapidly becomes...
by DamienDeville
Tue Jan 07, 2020 7:18 pm
Forum: Help
Topic: Reference to unknown object: list
Replies: 10
Views: 151

Re: Reference to unknown object: list

The uses/2 and use_module/2 directives scope is local to the objects (or categories); they are never inherited. You may use a separate file with those directives (that you want to repeat) and the include/1 directive if you must but that's not a common solution. OK, so if an app has 200 objects, wit...
by DamienDeville
Mon Jan 06, 2020 10:29 pm
Forum: Help
Topic: Reference to unknown object: list
Replies: 10
Views: 151

Reference to unknown object: list

I am having a hard time understanding: a) The relationship between the :-uses/2 and :-logtalk_load directives b) Whether the aliases created by :-uses are inherited down the instantiation and specialization hierarchies c) The Linter warnings about unknown objects on the :-uses lines Assuming that th...
by DamienDeville
Mon Jan 06, 2020 9:39 pm
Forum: Help and feedback
Topic: Linter syntax error: operator_expected
Replies: 2
Views: 97

Re: Linter syntax error: operator_expected

Oh God! How could I missed that? Thank you very very much!
by DamienDeville
Mon Jan 06, 2020 3:59 am
Forum: Help and feedback
Topic: Linter syntax error: operator_expected
Replies: 2
Views: 97

Linter syntax error: operator_expected

Newb trying to use clpfd in a logtalk program (swi backend) and I get the following Linter error Msg: REFASModel.lgt:6: ERROR: Syntax error: operator_expected Here is my object: 1 :- object(metaclass, instantiates(metaclass)). 2 :- use_module(clpfd, [ 3 op(760, yfx, #<==>), op(730, yfx, #\), op(720,...