Preserving query data in foreign interface
Abramo Bagnara <[email protected]>
| Newsgroups | gmane.comp.ai.prolog.swi |
|---|---|
| Organization | BUGSENG srl |
| Message-ID | <[email protected]> |
I'm calling from Java a Prolog query and I need to avoid that returned data is lost. I'm using low-level interface to avoid term_t <-> Term copying and the very deep stack recursion that this implies when handling long lists. If I use Prolog.close_query the binding is lost and we have no Prolog.cut_query available. That apart, I also have noted that in both java interface and C interface it is missing an helper to do deep copy of answers so to preserve multiple results of nondet queries. I've missing something? There are other ways to do what above? -- Abramo Bagnara BUGSENG srl - http://bugseng.com mailto:[email protected]