<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
Hoi folks,<br>
<br>
Consider the following two functions in Bird v2.15.1:<br>
<br>
<font face="monospace">function test_ok(int var1) -> bool<br>
{<br>
if (bgp_large_community ~ [ (50869,1000,var1), (50869,2000,8298)
]) then return true;<br>
return false;<br>
}<br>
<br>
function test_nok(int var1; int var2) -> bool<br>
{<br>
if (bgp_large_community ~ [ (50869,1000,var1), (50869,2000,var2<b><font
color="#ff0000">)</font></b> ]) then return true;<br>
return false;<br>
}</font><br>
<br>
The first one parses fine, but the second function yields a parse
error on <br>
bird: __filename__:199:66 Expression of type int expected<br>
<br>
Position 199:66 is the closing parenthesis directly after var2. I
colored that paren red above.<br>
Is my construct or syntax incorrect in the test_nok() case?<br>
<br>
groet,<br>
Pim<br>
<pre class="moz-signature" cols="72">--
Pim van Pelt
PBVP1-RIPE - <a class="moz-txt-link-freetext" href="https://ipng.ch/">https://ipng.ch/</a></pre>
</body>
</html>