<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
Hello:<br>
<br>
Freepascal 3.2.0. Windows 7-32bits<br>
<br>
I have these functions:<br>
<pre><font face="monospace">function F(const x:extended; const delta:extended=1E-8):extended;</font></pre>
<pre><font face="monospace">function G(const x:extended; const delta:extended=1E-8):extended;</font></pre>
<br>
and I want to parametrize like this:<br>
<br>
<pre>const
DefaultDelta:extended = 1E-8;</pre>
<pre>function F(const x:extended; const delta:extended=DefaultDelta):extended;</pre>
<pre>function G(const x:extended; const delta:extended=DefaultDelta):extended;
</pre>
But I get "Illegal expression" in the header function declaration. <br>
Const parameters don't accept const expressions?<br>
<br>
<br>
<pre class="moz-signature" cols="72">--
Saludos
Santiago A.</pre>
</body>
</html>