copy_term/2 in Eclipse
- From: Jens Claßen <jens_c@xxxxxxxxxx>
- Date: Thu, 30 Aug 2007 18:25:51 +0200
Hi,
I want to use the copy_term/2 predicate in order to generate the copy of
a term where its variables are replaced by new ones. I am using the
latest version (5.10) of Eclipse.
However when I for instance try the second example from here:
http://eclipse.crosscoreop.com/eclipse/doc/bips/kernel/termmanip/copy_term-2.html
the result is the following:
[eclipse 1]: copy_term(s(X,a,Y,X), C).
X = X
Y = Y
C = s(X, a, Y, X)
Yes (0.00s cpu)
That is, C is not a copy with new variables, but it is just unified with
the orginial term. Does anyone have an idea of how to fix this (or what
may be the problem)? Any hint would be welcome.
Regard
Jens
.
- Follow-Ups:
- Re: copy_term/2 in Eclipse
- From: Kish Shen
- Re: copy_term/2 in Eclipse
- From: bart demoen
- Re: copy_term/2 in Eclipse
- Prev by Date: Re: Survey of indexing features for dynamic clauses
- Next by Date: Re: Floyd warshall
- Previous by thread: Question about placement of cuts
- Next by thread: Re: copy_term/2 in Eclipse
- Index(es):
Relevant Pages
|
|