Closed giovinazzo-kevin closed 2 years ago
This is required by #27.
For instance, the following code should be possible to define in any module, not just the user module:
user
user:message_hook(Term, Kind, Lines) :- format('Term: ~w~nKind: ~w~nLines: ~w~n~n',[Term,Kind,Lines]), print_message_lines(current_output,kind(Kind),Lines), nl.
The parser currently ignores this information and instead creates a predicate with head ':'(user, message_hook)(Term, Kind, Lines) in the current module
':'(user, message_hook)(Term, Kind, Lines)
This was already possible for dynamic predicates and the fix only required a two liner; no PR
This is required by #27.
For instance, the following code should be possible to define in any module, not just the
user
module:The parser currently ignores this information and instead creates a predicate with head
':'(user, message_hook)(Term, Kind, Lines)
in the current module