Hook and/or override assert, retract, call, clause, erase, etc for specific predicates


Using SWI-Prolog 7.1 or later:

    ?- pack_install('https://github.com/TeamSPoon/hook_hybrid.git').

Source code available and pull requests accepted at

?- use_module(library(hook_hybrid)).


Some TODOs

Document this pack!

Write tests

Untangle the 'pack' install deps (Moving predicates over here from logicmoo_base)

Not obligated to maintain a git fork just to contribute

Dislike having tons of forks that are several commits behind the main git repo?

Be old school - Please ask to be added to TeamSPoon and Contribute directly !

Still, we wont stop you from doing it the Fork+PullRequest method

BSD 2-Clause License

Copyright (c) 2017, TeamSPoon and Douglas Miles <logicmoo@gmail.com> All rights reserved.

Prolog files

pack.plShow source
prolog/INDEX.plShow source
prolog/hook_database.plShow source
prolog/hook_hybrid.plShow source
prolog/lockable_vars.plShow source
prolog/predicate_inheritance.plShow source
prolog/retry_undefined.plShow source
prolog/virtualize_source.plShow source
t/sanity_tests.plShow source