Author(s): Christian Holzbaur, Daniel Cabeza, Manuel Carro.
Version: 1.7#116 (2001/8/9, 17:56:37 CEST)
Version of last change: 1.5#157 (2000/5/30, 13:4:47 CEST)
These predicates are builtin in Ciao, so nothing special has to be done to use them.
attributes
)combine_attributes/2
and
verify_attribute/2
are not called with the attributed variables involved, but with the corresponding attributes instead. The reasons are:
freeze/2
utilizes this technique. Note that this does not lead to cyclic structures, as the connection between an attributed variable and its attribute is invisible to the pure parts of the Prolog implementation.
get_attribute/2
.
portray_attribute/2
.
attributes
)
Usage: attach_attribute(Var,Attr)
Attr
to Var
.
Var
is a free variable.
(term_typing:var/1
)
Attr
is currently a term which is not a free variable.
(term_typing:nonvar/1
)
Usage: get_attribute(Var,Attr)
Attr
with the attribute of Var
, or fail if Var
has no attribute.
Var
is a free variable.
(term_typing:var/1
)
Attr
is currently a term which is not a free variable.
(term_typing:nonvar/1
)
Usage: update_attribute(Var,Attr)
Var
to Attr
.
Var
is a free variable.
(term_typing:var/1
)
Attr
is currently a term which is not a free variable.
(term_typing:nonvar/1
)
Usage: detach_attribute(Var)
Var
.
Var
is a free variable.
(term_typing:var/1
)
attributes
)The predicate is multifile.
Usage: verify_attribute(Attr,Term)
Attr
is about to be unified with the non-variable term Term
. The user should define this predicate (as multifile) in the modules implementing special unification.
Attr
is currently a term which is not a free variable.
(term_typing:nonvar/1
)
Term
is currently a term which is not a free variable.
(term_typing:nonvar/1
)
The predicate is multifile.
Usage: combine_attributes(Var1,Var2)
Var1
and Var2
are about to be unified. The user should define this predicate (as multifile) in the modules implementing special unification.
Var1
is a free variable.
(term_typing:var/1
)
Var2
is a free variable.
(term_typing:var/1
)
Go to the first, previous, next, last section, table of contents.