File: gprolog058.html

package info (click to toggle)
gprolog 1.3.0-6.1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, squeeze, wheezy
  • size: 13,512 kB
  • ctags: 8,954
  • sloc: ansic: 57,431; perl: 16,620; sh: 5,900; makefile: 1,284
file content (78 lines) | stat: -rw-r--r-- 2,306 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
            "http://www.w3.org/TR/REC-html40/loose.dtd">
<HTML>
<HEAD>



<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<META name="GENERATOR" content="hevea 1.08">
<LINK rel="stylesheet" type="text/css" href="gprolog.css">
<TITLE>
Type testing
</TITLE>
</HEAD>
<BODY TEXT=black BGCOLOR=white>
<A HREF="gprolog057.html"><IMG SRC ="previous_motif.gif" ALT="Previous"></A>
<A HREF="gprolog054.html"><IMG SRC ="contents_motif.gif" ALT="Up"></A>
<A HREF="gprolog059.html"><IMG SRC ="next_motif.gif" ALT="Next"></A>
<HR>

<H3 CLASS="subsection"><A NAME="htoc316">8.4</A>&nbsp;&nbsp;Type testing</H3><UL>
<LI><A HREF="gprolog058.html#toc260"><TT>fd_var/1</TT>, <TT>non_fd_var/1</TT>, 
 <TT>generic_var/1</TT>,
 <TT>non_generic_var/1</TT></A>
</UL>

<A NAME="toc260"></A>
<H4 CLASS="subsubsection"><A NAME="htoc317">8.4.1</A>&nbsp;&nbsp;<TT>fd_var/1</TT>, <TT>non_fd_var/1</TT>, 
 <TT>generic_var/1</TT>,
 <TT>non_generic_var/1</TT></H4>
 
 
 
 
<B>Templates</B>
<DL CLASS="list" COMPACT="compact"><DT CLASS="dt-list"><DD CLASS="dd-list"><TT>
fd_var(?term)<BR>
non_fd_var(?term)<BR>
generic_var(?term)<BR>
non_generic_var(?term)</TT></DL>
<B>Description</B><BR>
<BR>
<TT>fd_var(Term)</TT> succeeds if <TT>Term</TT> is currently an
FD variable.<BR>
<BR>
<TT>non_fd_var(Term)</TT> succeeds if <TT>Term</TT> is
currently not an FD variable (opposite of <TT>fd_var/1</TT>).<BR>
<BR>
<TT>generic_var(Term)</TT> succeeds if <TT>Term</TT> is
either a Prolog variable or an FD variable.<BR>
<BR>
<TT>non_generic_var(Term)</TT> succeeds if
<TT>Term</TT> is neither a Prolog variable nor an FD variable
(opposite of <TT>generic_var/1</TT>).<BR>
<BR>
<B>Errors</B><BR>
<BR>
None.<BR>
<BR>
<B>Portability</B><BR>
<BR>
GNU Prolog predicate.<BR>
<BR>

<HR SIZE=2>
Copyright (C) 1999-2007 Daniel Diaz
<BR>
<BR>
Verbatim copying and distribution of this entire article is permitted in any
medium, provided this notice is preserved. <BR>
<BR>
<A HREF="index.html#copyright">More about the copyright</A>
<HR>
<A HREF="gprolog057.html"><IMG SRC ="previous_motif.gif" ALT="Previous"></A>
<A HREF="gprolog054.html"><IMG SRC ="contents_motif.gif" ALT="Up"></A>
<A HREF="gprolog059.html"><IMG SRC ="next_motif.gif" ALT="Next"></A>
</BODY>
</HTML>