<commit_before><?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
    "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">

<head>
	<meta http-equiv="content-type" content="application/xml+xhtml; charset=utf-8" />
	<title>Logtalk control construct: {}/1</title>
	<link rel="stylesheet" href="../../screen.css" type="text/css" media="screen"/>
	<link rel="stylesheet" href="../../print.css" type="text/css" media="print"/>
</head>

<body>

<div class="top-left">Logtalk reference manual</div> 
<div class="top-right">Control construct: {}/1</div>
<div class="bottom-left"><span class="page"/></div> 
<div class="bottom-right"><span class="page"/></div>
<div class="navtop"><a href="../../index.html">contents</a> &gt; <a href="../index.html">reference manual</a> &gt; <a href="../index.html#constructs">control constructs</a></div>

<h2 id="control_external1" class="codenp">{}/1</h2>

<h4>Description</h4>

<pre>{Goal}</pre>
<p>
Calls external Prolog code. Can be used to bypass the Logtalk compiler. The argument is called within the context of the pseudo-object <em>user</em>.
</p>

<h4>Template and modes</h4>

<pre>{+callable}</pre>

<dl>
	<dt>Goal is a variable:</dt>
		<dd><code>instantiation_error</code></dd>
	<dt>Goal is neither a variable nor a callable term:</dt>
		<dd><code>type_error(callable, Goal)</code></dd>
</dl>

<h4>Examples</h4>

<pre>N1/D1 &lt; N2/D2 :-
    {N1*D2 &lt; N2*D1}.</pre>

<div class="footer">
	<div class="copyright">
		<span>Copyright &copy; <a href="mailto:<EMAIL>"><NAME></a> &mdash; <a href="http://logtalk.org">Logtalk.org</a></span><br/>	
		<span>Last updated on: June 5, 2007</span>
	</div>
	<div class="navbottom">
		<span><a href="../index.html#constructs">previous</a> | <a href="../../glossary.html">glossary</a> | <a href="../index.html#constructs">next</a></span><br/>
		<span><a href="http://validator.w3.org/check/referer">XHTML</a> + <a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a></span>
	</div>
</div>

</body>

</html><commit_msg>Corrected typo in the documentation of the control construct {}/1.<commit_after><?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
    "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">

<head>
	<meta http-equiv="content-type" content="application/xml+xhtml; charset=utf-8" />
	<title>Logtalk control construct: {}/1</title>
	<link rel="stylesheet" href="../../screen.css" type="text/css" media="screen"/>
	<link rel="stylesheet" href="../../print.css" type="text/css" media="print"/>
</head>

<body>

<div class="top-left">Logtalk reference manual</div> 
<div class="top-right">Control construct: {}/1</div>
<div class="bottom-left"><span class="page"/></div> 
<div class="bottom-right"><span class="page"/></div>
<div class="navtop"><a href="../../index.html">contents</a> &gt; <a href="../index.html">reference manual</a> &gt; <a href="../index.html#constructs">control constructs</a></div>

<h2 id="control_external1" class="codenp">{}/1</h2>

<h4>Description</h4>

<pre>{Goal}</pre>
<p>
Calls external Prolog code. Can be used to bypass the Logtalk compiler. The argument is called within the context of the pseudo-object <em>user</em>.
</p>

<h4>Template and modes</h4>

<pre>{+callable}</pre>

<h4>Errors</h4>

<dl>
	<dt>Goal is a variable:</dt>
		<dd><code>instantiation_error</code></dd>
	<dt>Goal is neither a variable nor a callable term:</dt>
		<dd><code>type_error(callable, Goal)</code></dd>
</dl>

<h4>Examples</h4>

<pre>N1/D1 &lt; N2/D2 :-
    {N1*D2 &lt; N2*D1}.</pre>

<div class="footer">
	<div class="copyright">
		<span>Copyright &copy; <a href="mailto:<EMAIL>"><NAME></a> &mdash; <a href="http://logtalk.org">Logtalk.org</a></span><br/>	
		<span>Last updated on: June 5, 2007</span>
	</div>
	<div class="navbottom">
		<span><a href="../index.html#constructs">previous</a> | <a href="../../glossary.html">glossary</a> | <a href="../index.html#constructs">next</a></span><br/>
		<span><a href="http://validator.w3.org/check/referer">XHTML</a> + <a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a></span>
	</div>
</div>

</body>

</html>
{'fraction_non_alphanumeric': 0.24519005161895824, 'fraction_numerical': 0.021351478179258563, 'mean_word_length': 4.784260515603799, 'pattern_counts': {'":': 0, '<': 195, '<?xml version=': 2, '>': 195, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 8}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2999971', 'n_tokens_mistral': 1691, 'n_tokens_neox': 1625, 'n_words': 313}