-
Notifications
You must be signed in to change notification settings - Fork 242
SatisfactionLink does not leave behind *-PatternGroundingKey-* #2215
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
Hmm. Yeah, its a beta feature that must have gotten broken. It was added to fix a performance problem for ghost, at the request of @amebel but I guess that it is no longer used, and got borken along the way. The correct fix is to go ahead and do #1502 and maybe #1507 and maybe #1750 ... ... but this is quite a large bit of work, and no one is banging down the doors for it yet, so it's been on the back burner. I think it would be fairly easy(?) to code, once the design is clear; but there are enough subtle questions that the best design isn't entirely clear. (I did start coding this, once upon a time, and promptly ran into issues) |
OK, so there is now a better solution; see the example that is part of pull req #2500 . This provides a more flexible, easier-to-use API than the original |
it used |
See issue #2530 and specifically, see the branch-new Here's the docs:
|
p.s. @amebel there is no urgent need to change |
See example pattern-matcher/satisfaction.scm.
Supposedly, when a
SatisfactionLink
is evaluated, the satisfying assignment should be attached to the key*-PatternGroundingKey-*
---thus one should be able to retrieve it by runningThis is however not the case: running
(cog-keys satlink)
reveals that in fact no keys are attached tosatlink
.The text was updated successfully, but these errors were encountered: