using the :- auto_table directive inside an object gives the following error on compilation:
Code: Select all
| ?- logtalk_compile( [ toto ] ).
% >>> compiling source file toto...
% compiling object toto...
% ERROR! domain_error(directive,auto_table / 0)
% in directive (:-auto_table)
++Error[XSB/Runtime] Unhandled Exception: error(error(domain_error(directive,auto_table / 0),directive(auto_table)),logtalk_compile([toto]))
| ?-
Code: Select all
:- object(toto).
:- auto_table.
:- public( path/2 ).
path( X, Z ) :- path( X, Y ), edge( Y, Z ).
path( X, Y ) :- edge( X, Y ).
edge( a, b ).
edge( a, c ).
edge( b, c ).
edge( b, d ).
edge( d, e ).
:- end_object.