Changeset 4303

Show
Ignore:
Timestamp:
06/07/08 03:26:26 (3 months ago)
Author:
pmoura
Message:

Updated the Logtalk runtime error handler to test for non-instantiated exception terms. Thanks to Joerg Schuster for the bug report.

Location:
trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/compiler/logtalk.pl

    r4300 r4303  
    294294% top-level runtime error handler 
    295295 
     296'$lgt_runtime_error_handler'(Variable) :- 
     297    var(Variable), 
     298    throw(error(instantiation_error, throw(_))). 
     299 
     300'$lgt_runtime_error_handler'(error(Variable)) :- 
     301    var(Variable), 
     302    throw(error(instantiation_error, throw(_))). 
     303 
     304'$lgt_runtime_error_handler'(error(Variable, Sender)) :- 
     305    var(Variable), 
     306    throw(error(instantiation_error, throw(_), Sender)). 
     307 
    296308'$lgt_runtime_error_handler'(error(existence_error(goal_thread, '$lgt_send_to_object_ne_nv'(Self, Goal, Sender)), _)) :- 
    297309    (   Self == user -> 
     
    381393    !, 
    382394    fail. 
     395 
     396'$lgt_runtime_error_handler'(error(Variable, _, Sender)) :- 
     397    var(Variable), 
     398    throw(error(instantiation_error, throw(_), Sender)). 
    383399 
    384400'$lgt_runtime_error_handler'(error(Error, user::Goal, user)) :- 
     
    74927508 
    74937509 
    7494 '$lgt_tr_meta_arg'(*, Arg, _, Arg, Arg). 
    7495  
    7496 '$lgt_tr_meta_arg'(::, Arg, Ctx, TArg, DArg) :- 
     7510'$lgt_tr_meta_arg'((*), Arg, _, Arg, Arg). 
     7511 
     7512'$lgt_tr_meta_arg'((::), Arg, Ctx, TArg, DArg) :- 
    74977513    '$lgt_tr_body'(Arg, TArg, DArg, Ctx). 
    74987514 
  • trunk/RELEASE_NOTES.txt

    r4301 r4303  
    1919    initialization/1 is still available (for now) for Prolog compilers that  
    2020    fail to support the thirteen years old ISO Prolog standard. 
     21 
     22    Updated the Logtalk runtime error handler to test for non-instantiated  
     23    exception terms. Thanks to Joerg Schuster for the bug report. 
    2124 
    2225    Added a new default compiler option, multifile_directive, to all config