Changeset 4403

Show
Ignore:
Timestamp:
07/24/08 10:26:55 (4 months ago)
Author:
pmoura
Message:

Corrected a bug in the implementation of the built-in database method retractall/1 when retracting clauses in an object compiled in debug mode. Thanks to Parker Jones for the bug report.

Location:
trunk
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/compiler/logtalk.pl

    r4401 r4403  
    26392639                    '$lgt_update_ddef_table'(DDef, Head, Call) 
    26402640                ;   call_with_args(Def, Head, _, _, _, Call) -> 
    2641                     '$lgt_add_db_lookup_cache_entry'(Obj, Head, PScope, Sender, Call), 
     2641                    (   '$lgt_debugging_'(Obj) -> 
     2642                        true 
     2643                    ;   '$lgt_add_db_lookup_cache_entry'(Obj, Head, PScope, Sender, Call) 
     2644                    ), 
    26422645                    retractall(Call) 
    26432646                ;   true 
     
    26552658        (   Obj = Sender, 
    26562659            call_with_args(DDef, Head, _, _, _, Call) -> 
    2657             '$lgt_add_db_lookup_cache_entry'(Obj, Head, PScope, Sender, Call), 
     2660            (   '$lgt_debugging_'(Obj) -> 
     2661                true 
     2662            ;   '$lgt_add_db_lookup_cache_entry'(Obj, Head, PScope, Sender, Call) 
     2663            ), 
    26582664            retractall(Call) 
    26592665        ;   throw(error(existence_error(predicate_declaration, Head), Obj::retractall(Head), Sender)) 
     
    50055011% returns runtime table clauses for the entity being compiled 
    50065012 
    5007 '$lgt_pp_rclause'(Clause) :- 
    5008     '$lgt_pp_rclause_'(Clause). 
    5009  
    50105013'$lgt_pp_rclause'('$lgt_debugging_'(Entity)) :- 
    50115014    '$lgt_compiler_flag'(debug, on), 
    50125015    '$lgt_pp_entity'(_, Entity, _, _, _). 
     5016 
     5017'$lgt_pp_rclause'(Clause) :- 
     5018    '$lgt_pp_rclause_'(Clause). 
    50135019 
    50145020'$lgt_pp_rclause'('$lgt_current_object_'(Obj, Prefix, Dcl, Def, Super, IDcl, IDef, DDcl, DDef, Rnm, Mode, Synchronized, Threaded)) :- 
  • trunk/RELEASE_NOTES.txt

    r4402 r4403  
    6161    from within a category. 
    6262 
     63    Corrected a bug in the implementation of the built-in database method  
     64    retractall/1 when retracting clauses in an object compiled in debug mode. 
     65    Thanks to Parker Jones for the bug report. 
     66 
    6367    Updated all config files due to changes to the predicate used to declare  
    6468    proprietary meta-predicates, '$lgt_pl_meta_predicate'/1. Added a second  
     
    6670    or a built-in control construct. This is necessary in order to properly  
    6771    compile calls to these proprietary meta-predicates when in debug mode. 
     72    Thanks to Victor Noel for the bug report. 
    6873 
    6974    Corrected a bug in the config files hooks used in handling proprietary  
  • trunk/UPGRADING.txt

    r4368 r4403  
    208208 
    209209Logtalk version 2.32.2 changes the internal predicate used in the processing  
    210 of "super" calls, changes the implementation of complementing categories, and  
     210of "super" calls, changes the implementation of complementing categories,  
    211211changes the possible values of the read-only compiler flag "break_predicate", 
    212 therefore implying the recompilation of all objects. 
     212and changes the way proprietary Prolog meta-predicates and control constructs  
     213are declared, therefore implying the recompilation of all objects.