pmoura on master
Minor improvement to the docume… Update FCube port list of known… (compare)
pmoura on master
Add new `[]` and `{}` edge case… Update SVG diagrams (compare)
pmoura on master
Additional test for the optiona… (compare)
pmoura on master
Update FCube port with comments… (compare)
pmoura on master
Workaround XSB operator issue p… (compare)
pmoura on master
Improve ports documentation (compare)
pmoura on master
Update FCube port list of known… (compare)
pmoura on master
Update the `NOTICE.txt` file fo… (compare)
pmoura on master
Add port of FCube: An Efficient… (compare)
pmoura on master
Additional test for the `setof/… (compare)
pmoura on master
Detect conflicts between `dynam… (compare)
pmoura on master
Improve instructions for runnin… (compare)
pmoura on master
Update version to 3.58.0-b01 in… Fix typo in the sample queries … (compare)
pmoura on lgt3570stable
pmoura on master
Change version to 3.57.0 stable… (compare)
pmoura on master
Update bibliography and citatio… (compare)
pmoura on master
Simplify `gensym::reset_gensym/… Change new `genint` library to … Change version to 3.57.0 stable… (compare)
pmoura on master
Fix malformed TSV test file in … (compare)
pmoura on master
Add description of the `flags` … (compare)
pmoura on master
Add description of the `verdi_n… (compare)
var/1
and valid/1
tests.
check/1
:
check(Term) :-
( valid(Term) ->
true
; var(Term) ->
instantiation_error
; type_error(rbtree, Term)
).
valid/1
which is here: valid(X) :-
var(X),
!,
fail.
valid(t(Nil,Nil)) :-
!.
valid(t(_,Tree)) :-
catch(check_rbtree_root(Tree), _, fail).
valid/1
calls var/1
right off the start. Then it does the weird cut and fail thing.
var/1
.
var/1, !, fail
looks a lot like you're trying to chew away choice points, but ... the action for the var/1
situation later is an exception so I'm a bit baffled.
type
object.
$LOGTALKUSER
directory and the copy of any settings.lgt
or settings.logtalk
file is done not by the installers but by running the logtalk_user_setup
script. This script is automatically called when the $LOGTALKUSER
directory is outdated due to a new Logtalk version been installed.
logtalk::print_message(debug, component, Message)
in debug mode.
:- uses(logtalk, [print_message(debug, foo, Message) as dbg(Message)]).