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

MeTTaLog now treats : differently #225

Open
ngeiswei opened this issue Dec 17, 2024 · 3 comments
Open

MeTTaLog now treats : differently #225

ngeiswei opened this issue Dec 17, 2024 · 3 comments
Labels
bug Issues that represent errors in the code

Comments

@ngeiswei
Copy link
Contributor

What is your problem?

For some reason, MeTTaLog freezes on some simple function call involving :.

How to reproduce your problem?

Run the following code with the latest revision (d232fac as of the time of writing) of MeTTaLog

(= (foo (: $x $a)) OK)
!(foo (: $x $a))

What should be normally output?

[OK]

What do you get instead?

It freezes.

@ngeiswei ngeiswei added bug Issues that represent errors in the code High Priority labels Dec 17, 2024
@ngeiswei
Copy link
Contributor Author

I know the problem has to do with : because if I replace it by another symbol, then it works.

@ngeiswei
Copy link
Contributor Author

Oh, after merging the latest commits (revision db96914), it outputs

[(foo (predicate-arity $10000 1))]

which is better than freezing, but still incorrect.

@ngeiswei
Copy link
Contributor Author

Thanks to that recent commit my backward chainer works again, so I removed the High Priority label. However the issue still occurs, as far as I can tell, so I am not closing it just yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issues that represent errors in the code
Projects
None yet
Development

No branches or pull requests

1 participant