Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > by-pkgid > 2fc07611b08d4a735fd34d5eb60d8e16 > files > 2048

ciao-1.10p8-3mdv2010.0.i586.rpm

<HTML>
<HEAD>
<!-- Created by texi2html 1.56k + clip patches and <A href="http://www.clip.dia.fi.upm.es/Software">lpdoc</A> from ciao.texi on 28 January 2007 -->

<LINK rel="stylesheet" href="ciao.css" type="text/css">
<TITLE>The Ciao Prolog System               - Delaying predicates (freeze)</TITLE>
</HEAD>
<BODY> 
Go to the <A HREF="ciao_1.html">first</A>, <A HREF="ciao_105.html">previous</A>, <A HREF="ciao_107.html">next</A>, <A HREF="ciao_241.html">last</A> section, <A HREF="ciao_toc.html">table of contents</A>.
<P><HR><P>


<H1><A NAME="SEC439" HREF="ciao_toc.html#TOC439">Delaying predicates (freeze)</A></H1>
<P>
<A NAME="IDX5400"></A>


<P>
<STRONG>Author(s):</STRONG> Manuel Carro, Daniel Cabeza.


<P>
<STRONG>Version:</STRONG> 1.10#7 (2006/4/26, 19:22:13 CEST)


<P>
<STRONG>Version of last change:</STRONG> 1.5#72 (2000/3/19, 19:9:14 CET)


<P>
This library offers a simple implementation of 
<A NAME="IDX5401"></A>
<CODE>freeze/2</CODE>, 
<A NAME="IDX5402"></A>
<CODE>frozen/2</CODE>, etc. [Col82,Nai85,Nai91,Car87] based on the use of attributed variables [Hol92,Hol90].



<UL>
<LI><A HREF="ciao_106.html#SEC440">Usage and interface (freeze)</A>
<LI><A HREF="ciao_106.html#SEC441">Documentation on exports (freeze)</A>
</UL>



<H2><A NAME="SEC440" HREF="ciao_toc.html#TOC440">Usage and interface (<CODE>freeze</CODE>)</A></H2>

<div class="cartouche">

<UL>

<LI><STRONG>Library usage:</STRONG>

<CODE>:- use_module(library(freeze)).</CODE>

<LI><STRONG>Exports:</STRONG>


<UL>

<LI><EM>Predicates:</EM>

<A NAME="IDX5403"></A>
<CODE>freeze/2</CODE>, 
<A NAME="IDX5404"></A>
<CODE>frozen/2</CODE>.

</UL>

</UL>

</div class="cartouche">



<H2><A NAME="SEC441" HREF="ciao_toc.html#TOC441">Documentation on exports (<CODE>freeze</CODE>)</A></H2>
<P>
<A NAME="IDX5405"></A>
<A NAME="IDX5406"></A>
<DL>
<DT><span class="define">PREDICATE:</span> <B>freeze/2:</B>
<DD><A NAME="IDX5407"></A>


<P>
<EM>Meta-predicate</EM> with arguments: <CODE>freeze(?,goal)</CODE>.


<P>
<STRONG>Usage:</STRONG> <CODE>freeze(X, Goal)</CODE>

<UL>
<LI><EM>Description:</EM> If <CODE>X</CODE> is free delay <CODE>Goal</CODE> until <CODE>X</CODE> is non-variable.

<LI><EM>The following properties should hold at call time:</EM>

<CODE>Goal</CODE> is a term which represents a goal, i.e., an atom or a structure.
 (<CODE>basic_props:callable/1</CODE>)
</UL>

</DL>

<P>
<A NAME="IDX5408"></A>
<A NAME="IDX5409"></A>
<DL>
<DT><span class="define">PREDICATE:</span> <B>frozen/2:</B>
<DD><A NAME="IDX5410"></A>


<P>
<EM>Meta-predicate</EM> with arguments: <CODE>frozen(?,goal)</CODE>.


<P>
<STRONG>Usage:</STRONG> <CODE>frozen(X, Goal)</CODE>

<UL>
<LI><EM>Description:</EM> <CODE>Goal</CODE> is currently delayed until variable <CODE>X</CODE> becomes bound.

<LI><EM>The following properties should hold upon exit:</EM>

<CODE>Goal</CODE> is a term which represents a goal, i.e., an atom or a structure.
 (<CODE>basic_props:callable/1</CODE>)
</UL>

</DL>

<P><HR><P>
Go to the <A HREF="ciao_1.html">first</A>, <A HREF="ciao_105.html">previous</A>, <A HREF="ciao_107.html">next</A>, <A HREF="ciao_241.html">last</A> section, <A HREF="ciao_toc.html">table of contents</A>.
</BODY>
</HTML>