-
Notifications
You must be signed in to change notification settings - Fork 235
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
Add OR to exception in evaluatable checker #2622
Add OR to exception in evaluatable checker #2622
Conversation
Why? AndLink is treated differentlty due to a historical mistake; I'm in the process of slowly erasing that mistake. I do not want to spread that mistake to OrLink. I'm guessing that perhaps you should be using |
Yeah so do you remember the representation atomeses we were talking about on #2546? (define the-expr (AndLink (PredicateNode "$a") (CondLink (EqualLink (Variable "$knob-2") (NumberNode 1)) (PredicateNode "$b") (NotLink (PredicateNode "$b"))))) I needed it to do the same when we have |
I think what you need is to add
I haven't tested, but I think that's the actual issue you are facing |
One more thing the (OrLink (KnobLink (VariableNode "$knob-376fd81c") (PredicateNode "$2") (NumberNode "0 1 2") (FalseLink ) (FalseLink ))) But I could check if it is |
Test the patch above, see if that fixes it for you. Also, the checker infrastructure should be updated to print a more informative error message: e.g "found a non-evaluatable atom XYZ in a link that will be evaluated". |
Ho about There are several meta-issues that haven't been solved; one is that static type-checking is ... OK but imperfect, and that dynamic type-checking is equally hap-hazard. Both are kind of a kludge, but I want to avoid making them even kludgier by having too many exceptions. The correct, long-term "perfect" solution is not yet clear. |
I'm assuming KnobLink inherits from CondLink ... |
Oh, well, you could just also make make KobLink inherit from EvaluatableLink, and then no changes to atomspace source are needed. So if you have some
to
and it will all just work. |
Thanks that works. |
I needed this in asmoses when creating representation.