You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've looked through the loader.pl code, but I haven't been able to identify anything that works.
The thing that looks closest I could find is:
prolog_load_context(module, Module) :-%% The source module (see ref-mod-mne). This is useful for example%% if you are defining clauses for user:term_expansion/6 and need%% to access the source module at compile time.'$prolog_lc_module'(Module).
But that seems to only work during whatever "compile time" is, but that's a separate question!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
With
current_predicate/2
we can see the predicates attached to a module:Unfortunately, it's not fully general:
I've looked through the
loader.pl
code, but I haven't been able to identify anything that works.The thing that looks closest I could find is:
But that seems to only work during whatever "compile time" is, but that's a separate question!
Beta Was this translation helpful? Give feedback.
All reactions