Changeset 4369

Show
Ignore:
Timestamp:
07/13/08 08:50:13 (6 months ago)
Author:
pmoura
Message:

Corrected a typo in the exception terms throw by the built-in method assertz/1 when an error occurs while trying to assert a fact.

Location:
trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/compiler/logtalk.pl

    r4368 r4369  
    23192319        ;   % predicate is not within the scope of the sender: 
    23202320            (   Scope == p -> 
    2321                 throw(error(permission_error(modify, private_predicate, Head), Obj::asserta(Head), Sender)) 
    2322             ;   throw(error(permission_error(modify, protected_predicate, Head), Obj::asserta(Head), Sender)) 
     2321                throw(error(permission_error(modify, private_predicate, Head), Obj::assertz(Head), Sender)) 
     2322            ;   throw(error(permission_error(modify, protected_predicate, Head), Obj::assertz(Head), Sender)) 
    23232323            ) 
    23242324        ) 
    23252325    ;   % predicate is static: 
    2326         throw(error(permission_error(modify, static_predicate, Head), Obj::asserta(Head), Sender)) 
     2326        throw(error(permission_error(modify, static_predicate, Head), Obj::assertz(Head), Sender)) 
    23272327    ). 
    23282328 
  • trunk/RELEASE_NOTES.txt

    r4368 r4369  
    3434    implementation of this feature easier to maintain and contributing to  
    3535    smaller code sizes of the intermediate Prolog files. 
     36 
     37    Corrected a typo in the exception terms throw by the built-in method  
     38    assertz/1 when an error occurs while trying to assert a fact. 
    3639 
    3740    Changed the valid values of the read-only compiler flag "break_predicate"