Skip to content
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

Ignore Warning: Clauses are not together in the source-file #18

Open
PalumboN opened this issue May 15, 2016 · 2 comments
Open

Ignore Warning: Clauses are not together in the source-file #18

PalumboN opened this issue May 15, 2016 · 2 comments

Comments

@PalumboN
Copy link
Contributor

Can we ignore the Warning: Clauses are not together in the source-file for Prolog solutions?

I have cases where the students must add new clauses for a given predicate or in particulars exercises adding examples in extra code. This warning appears until the exercise is done and it's very annoying and confused.

@iluetich
Copy link

iluetich commented Jun 15, 2016

Hi @PalumboN, i just found something that may be of your interest! It is a predicate of arity 1 named discontiguous, which pretty much resolves this issue.

It informs Prolog that the predicate given by parameter is not defined alltogether in the source file (or at least that describes in the documentation).

@flbulgarelli
Copy link
Member

Hi @PalumboN, i just found something that may be of your interest! It is a predicate of arity 1 named discontiguous, which pretty much resolves this issue.

I like this solution, since It is not trivial to know which predicates are expected to be extended by student and which not. @PalumboN please try this solution and close this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants