Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

XPCE "Arguments are not sufficiently instantiated"

4 views
Skip to first unread message

Stonehead

unread,
Dec 11, 2009, 6:56:23 PM12/11/09
to
Hello.
I'm trying to use XPCE for GUI to my prolog script and I would like to
store a list from prolog in a variable in xpce. The problem is that some
of the elements in my list are uninstantiated and thus this error is
generated. I have tried several types of variable (chain, object, any)
but all throw the same error.

Is there a way to store a prolog list that isn't fully instantiated into
a xpce variable?

Thx =)

Jan Wielemaker

unread,
Dec 12, 2009, 4:44:41 AM12/12/09
to

Yip. See user-defined classes using the `type' 'prolog'. I guess that
should be in the user guide. There are also examples in the libraries
and http://hcs.science.uva.nl/projects/SWI-Prolog/articles/wlpe-02.pdf
describes the rationale.

Note however that, except for parameter-passing to prolog-defined
methods, this results in a *copy* and therefore it might have little
use to you.

Cheers --- Jan

0 new messages