| 2239 | | '$lgt_assert_pred_dcl'(Dcl, DDcl, Head, Scope, PredType, Meta, SCtn, DclScope), |
| | 2239 | '$lgt_assert_pred_dcl'(Dcl, DDcl, Head, Scope, PredType, Meta, SCtn, DclScope, Obj::asserta((Head:-Body)), Sender), |
| 2273 | | '$lgt_assert_pred_dcl'(Dcl, DDcl, Head, Scope, PredType, _, SCtn, DclScope), |
| | 2273 | '$lgt_assert_pred_dcl'(Dcl, DDcl, Head, Scope, PredType, _, SCtn, DclScope, Obj::asserta(Head), Sender), |
| 2341 | | '$lgt_assert_pred_dcl'(Dcl, DDcl, Head, Scope, PredType, Meta, SCtn, DclScope), |
| | 2341 | '$lgt_assert_pred_dcl'(Dcl, DDcl, Head, Scope, PredType, Meta, SCtn, DclScope, Obj::assertz((Head:-Body)), Sender), |
| 2375 | | '$lgt_assert_pred_dcl'(Dcl, DDcl, Head, Scope, PredType, _, SCtn, DclScope), |
| | 2375 | '$lgt_assert_pred_dcl'(Dcl, DDcl, Head, Scope, PredType, _, SCtn, DclScope, Obj::assertz(Head), Sender), |
| 2403 | | '$lgt_assert_pred_dcl'(Dcl, DDcl, Pred, Scope, Type, Meta, SCtn, DclScope) :- |
| | 2403 | '$lgt_assert_pred_dcl'(Dcl, DDcl, Pred, Scope, Type, Meta, SCtn, DclScope, Goal, Sender) :- |
| 2407 | | '$lgt_assert_ddcl_clause'(DDcl, Pred, DclScope), |
| 2408 | | (Scope, Type, Meta) = (DclScope, (dynamic), no) |
| | 2407 | ( DDcl == nil -> |
| | 2408 | % object doesn't supports dynamic declaration of new predicates: |
| | 2409 | throw(error(permission_error(modify, object_protocol, Pred), Goal, Sender)) |
| | 2410 | ; '$lgt_assert_ddcl_clause'(DDcl, Pred, DclScope), |
| | 2411 | (Scope, Type, Meta) = (DclScope, (dynamic), no) |
| | 2412 | ) |
| 9786 | | HeadDDcl =.. [Dcl, Pred, Scope, (dynamic), no, no, no, Obj, Obj], |
| 9787 | | BodyDDcl =.. [DDcl, Pred, Scope], |
| 9788 | | assertz('$lgt_pp_dcl_'((HeadDDcl:-BodyDDcl))). |
| | 9796 | ( '$lgt_compiler_flag'(dynamic_declarations, on) -> |
| | 9797 | HeadDDcl =.. [Dcl, Pred, Scope, (dynamic), no, no, no, Obj, Obj], |
| | 9798 | BodyDDcl =.. [DDcl, Pred, Scope], |
| | 9799 | assertz('$lgt_pp_dcl_'((HeadDDcl:-BodyDDcl))) |
| | 9800 | ; true |
| | 9801 | ). |
| 9792 | | HeadDDcl =.. [Dcl, Pred, Scope, (dynamic), no, no, no, Obj, Obj], |
| 9793 | | BodyDDcl =.. [DDcl, Pred, Scope], |
| 9794 | | assertz('$lgt_pp_dcl_'((HeadDDcl:-BodyDDcl))). |
| | 9805 | ( '$lgt_compiler_flag'(dynamic_declarations, on) -> |
| | 9806 | HeadDDcl =.. [Dcl, Pred, Scope, (dynamic), no, no, no, Obj, Obj], |
| | 9807 | BodyDDcl =.. [DDcl, Pred, Scope], |
| | 9808 | assertz('$lgt_pp_dcl_'((HeadDDcl:-BodyDDcl))) |
| | 9809 | ; HeadDDcl =.. [Dcl, _, _, _, _, _, _, _, _], |
| | 9810 | assertz('$lgt_pp_dcl_'((HeadDDcl:-fail))) |
| | 9811 | ). |
| 9843 | | '$lgt_pp_object_'(Obj, _, ODcl, _, _, _, _, _, _, _, _) -> |
| 9844 | | Head =.. [ODcl, Pred, Scope, Compilation, Meta, NonTerminal, Synchronized, Obj, Ctn], |
| 9845 | | Lookup = '$lgt_complemented_object'(Obj, Pred, Scope, Compilation, Meta, NonTerminal, Synchronized, Ctn), |
| 9846 | | assertz('$lgt_pp_dcl_'((Head:-Lookup))). |
| | 9860 | ( '$lgt_compiler_flag'(complements, on) -> |
| | 9861 | '$lgt_pp_object_'(Obj, _, ODcl, _, _, _, _, _, _, _, _) -> |
| | 9862 | Head =.. [ODcl, Pred, Scope, Compilation, Meta, NonTerminal, Synchronized, Obj, Ctn], |
| | 9863 | Lookup = '$lgt_complemented_object'(Obj, Pred, Scope, Compilation, Meta, NonTerminal, Synchronized, Ctn), |
| | 9864 | assertz('$lgt_pp_dcl_'((Head:-Lookup))) |
| | 9865 | ; true |
| | 9866 | ). |
| 9918 | | '$lgt_pp_object_'(Obj, _, _, ODef, _, _, _, _, _, _, _) -> |
| 9919 | | Head =.. [ODef, Pred, Sender, Obj, Self, Call, Ctn], |
| 9920 | | Lookup = '$lgt_complemented_object'(Pred, Sender, Obj, Self, Call, Ctn), |
| 9921 | | assertz('$lgt_pp_fdef_'((Head:-Lookup))). |
| | 9938 | ( '$lgt_compiler_flag'(complements, on) -> |
| | 9939 | '$lgt_pp_object_'(Obj, _, _, ODef, _, _, _, _, _, _, _) -> |
| | 9940 | Head =.. [ODef, Pred, Sender, Obj, Self, Call, Ctn], |
| | 9941 | Lookup = '$lgt_complemented_object'(Pred, Sender, Obj, Self, Call, Ctn), |
| | 9942 | assertz('$lgt_pp_fdef_'((Head:-Lookup))) |
| | 9943 | ; true |
| | 9944 | ). |
| 10034 | | HeadDDcl =.. [IDcl, Pred, Scope, (dynamic), no, no, no, Obj, Obj], |
| 10035 | | BodyDDcl =.. [DDcl, Pred, Scope], |
| 10036 | | assertz('$lgt_pp_dcl_'((HeadDDcl:-BodyDDcl))). |
| | 10057 | ( '$lgt_compiler_flag'(dynamic_declarations, on) -> |
| | 10058 | HeadDDcl =.. [IDcl, Pred, Scope, (dynamic), no, no, no, Obj, Obj], |
| | 10059 | BodyDDcl =.. [DDcl, Pred, Scope], |
| | 10060 | assertz('$lgt_pp_dcl_'((HeadDDcl:-BodyDDcl))) |
| | 10061 | ; true |
| | 10062 | ). |
| 10040 | | HeadDDcl =.. [IDcl, Pred, Scope, (dynamic), no, no, no, Obj, Obj], |
| 10041 | | BodyDDcl =.. [DDcl, Pred, Scope], |
| 10042 | | assertz('$lgt_pp_dcl_'((HeadDDcl:-BodyDDcl))). |
| | 10066 | ( '$lgt_compiler_flag'(dynamic_declarations, on) -> |
| | 10067 | HeadDDcl =.. [IDcl, Pred, Scope, (dynamic), no, no, no, Obj, Obj], |
| | 10068 | BodyDDcl =.. [DDcl, Pred, Scope], |
| | 10069 | assertz('$lgt_pp_dcl_'((HeadDDcl:-BodyDDcl))) |
| | 10070 | ; HeadDDcl =.. [IDcl, _, _, _, _, _, _, _, _], |
| | 10071 | assertz('$lgt_pp_dcl_'((HeadDDcl:-fail))) |
| | 10072 | ). |
| 10091 | | '$lgt_pp_object_'(Obj, _, _, _, _, OIDcl, _, _, _, _, _) -> |
| 10092 | | Head =.. [OIDcl, Pred, Scope, Compilation, Meta, NonTerminal, Synchronized, Obj, Ctn], |
| 10093 | | Lookup = '$lgt_complemented_object'(Obj, Pred, Scope, Compilation, Meta, NonTerminal, Synchronized, Ctn), |
| 10094 | | assertz('$lgt_pp_dcl_'((Head:-Lookup))). |
| | 10121 | ( '$lgt_compiler_flag'(complements, on) -> |
| | 10122 | '$lgt_pp_object_'(Obj, _, _, _, _, OIDcl, _, _, _, _, _) -> |
| | 10123 | Head =.. [OIDcl, Pred, Scope, Compilation, Meta, NonTerminal, Synchronized, Obj, Ctn], |
| | 10124 | Lookup = '$lgt_complemented_object'(Obj, Pred, Scope, Compilation, Meta, NonTerminal, Synchronized, Ctn), |
| | 10125 | assertz('$lgt_pp_dcl_'((Head:-Lookup))) |
| | 10126 | ; true |
| | 10127 | ). |
| 10167 | | '$lgt_pp_object_'(Obj, _, _, ODef, _, _, _, _, _, _, _) -> |
| 10168 | | Head =.. [ODef, Pred, Sender, Obj, Self, Call, Ctn], |
| 10169 | | Lookup = '$lgt_complemented_object'(Pred, Sender, Obj, Self, Call, Ctn), |
| 10170 | | assertz('$lgt_pp_fdef_'((Head:-Lookup))). |
| | 10200 | ( '$lgt_compiler_flag'(complements, on) -> |
| | 10201 | '$lgt_pp_object_'(Obj, _, _, ODef, _, _, _, _, _, _, _) -> |
| | 10202 | Head =.. [ODef, Pred, Sender, Obj, Self, Call, Ctn], |
| | 10203 | Lookup = '$lgt_complemented_object'(Pred, Sender, Obj, Self, Call, Ctn), |
| | 10204 | assertz('$lgt_pp_fdef_'((Head:-Lookup))) |
| | 10205 | ; true |
| | 10206 | ). |
| 10230 | | '$lgt_pp_object_'(Obj, _, _, _, _, _, OIDef, _, _, _, _) -> |
| 10231 | | Head =.. [OIDef, Pred, Sender, Obj, Self, Call, Ctn], |
| 10232 | | Lookup = '$lgt_complemented_object'(Pred, Sender, Obj, Self, Call, Ctn), |
| 10233 | | assertz('$lgt_pp_fdef_'((Head:-Lookup))). |
| | 10266 | ( '$lgt_compiler_flag'(complements, on) -> |
| | 10267 | '$lgt_pp_object_'(Obj, _, _, _, _, _, OIDef, _, _, _, _) -> |
| | 10268 | Head =.. [OIDef, Pred, Sender, Obj, Self, Call, Ctn], |
| | 10269 | Lookup = '$lgt_complemented_object'(Pred, Sender, Obj, Self, Call, Ctn), |
| | 10270 | assertz('$lgt_pp_fdef_'((Head:-Lookup))) |
| | 10271 | ; true |
| | 10272 | ). |
| | 13903 | '$lgt_default_flag'(complements, Complements), |
| | 13904 | write(' Complementing category support (complements): '), write(Complements), nl, |
| | 13905 | '$lgt_default_flag'(dynamic_declarations, DynamicDeclarations), |
| | 13906 | write(' Dynamic declarations support (dynamic_declarations): '), write(DynamicDeclarations), nl, |