-
I'm sure this is one of those things that should be obvious but I see not documentation for -- what is the significance of prefixing I've seen:
Is
mod:foo(A) :- A=foo.
:- use_module(mod, [foo/1]). vs :- use_module(mod, [foo/1]).
mod:foo(A) :- A = foo. Or is this trick something that only works for By the way, I'm not trying to get hung up on what these functions do, (will save that for a different post), I'm trying to understand the What would we call these things, hooks? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Term and goal expansions defined in the |
Beta Was this translation helpful? Give feedback.
Term and goal expansions defined in the
user
module are meant to pertain to all future clauses that are compiled. A library such aslibrary(clpz)
defines such expansions inuser:
for them to affect also programs that load the library, whereas module-local expansions and alsoverify_attributes/3
,attribute_goals//1
etc. are confined to the module in which they are defined.