-
Hi, I have the following code: main.pl:
test001.lgt:
and this is the output:
In the second case the predicates gets written to the subobject, which I think is ok, but I cannot access it directly but only via Self::p. But the compiler complains use of Self::p. How do I handle this case correctly? Thanks in Advance, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
::p is the solution |
Beta Was this translation helpful? Give feedback.
-
You're using the pack version of Logtalk. But the pack is only meant for deploying applications, not for development. Using one of the Logtalk installers provides a much better experience for development. Also preferable to use the SWI-Prolog integration script, swilgt, instead of the $ swilgt -g "logtalk_load(test001)" |
Beta Was this translation helpful? Give feedback.
::p is the solution