TeamSPoon / swipl-devel-unstable

DIFF https://github.com/SWI-Prolog/swipl-devel/compare/master...logicmoo:master_dvard
https://docs.google.com/document/d/1jo8aG_C7wwh1lZzPsFMfh3DEcRjhTQ-MMT_D2_GimEQ/edit
Other
4 stars 1 forks source link

O_DRA_META - In pl-vmi.c, specially marked predicates get a wrapper that implements something written on prolog #5

Open TeamSPoon opened 8 years ago

TeamSPoon commented 8 years ago

O_DRA_META

In pl-vmi.c, specially marked predicates get a wrapper that implements something written on prolog. This is used as a fast inroad to the tabling system

ffooo:-writeln(‘foo’).
barrr(G):- writen(‘Calling‘:G),G.
?- '$set_pattr'(ffooo, pred, dra_meta=barrr),ffooo.
 Calling:ffooo
 foo