trealla-prolog / trealla

A compact, efficient Prolog interpreter written in plain-old C.
MIT License
272 stars 13 forks source link

Logtalk issue #621

Closed infradig closed 2 days ago

infradig commented 3 days ago

Trealla has stopped working with Logtalk after a Logtalk update... @pmoura

$ git bisect bad
0702156c3454acbfd0a88334a82817b046441c59 is the first bad commit
commit 0702156c3454acbfd0a88334a82817b046441c59
Author: Paulo Moura <pmoura@logtalk.org>
Date:   Sat Nov 2 15:44:10 2024 +0000

    Fix compiler to prevent trying to compile a Prolog `use_module/1` directive as a Logtalk directive when compiling a module as an object

 RELEASE_NOTES.md | 6 ++++++
 core/core.pl     | 5 +++++
 2 files changed, 11 insertions(+)
pmoura commented 3 days ago

The issue is:

$ tplgt
Error: syntax error, near '1', operator expected, /opt/local/share/logtalk-3.85.0-b01/integration/../core/core.pl:10267

Caused by:

$ tpl
?- current_op(P, T, use_module).
   P = 1150, T = fx.

Easy to workaround. But I'm not aware of any other Prolog system declaring use_module as an operator.

infradig commented 3 days ago

Thanks Paulo, my bad.

pmoura commented 3 days ago

Thanks for the quick fix. Confirmed.