-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot use predicate_property/2 to query module predicate properties #28
Comments
Some details of what is happening (in Ciao's module system):
If Ciao semantics are too restrictive we can relax them, at least for code using the strict ISO compatibility mode. Is there a test in Logtalk test suite that reflects the expected behavior? Thanks! |
When calling a Prolog module predicate from within a Logtalk object (or category), the compiler must be able to access key predicate properties such as a meta-predicate template so that the call is compiled correctly. For reliability, this require that the module is already loaded. An example is: https://github.com/LogtalkDotOrg/logtalk3/tree/master/examples/symbiosis If I modify this example to run load on Ciao, by using its
The :- use_module(library(hiordlib), []). This directive loads the module into |
With a loaded module, e.g.
is not possible to query the properties of predicates exported by the module:
The text was updated successfully, but these errors were encountered: