<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to SyntaxFunction</title><link>https://sourceforge.net/p/mkconf/wiki/SyntaxFunction/</link><description>Recent changes to SyntaxFunction</description><atom:link href="https://sourceforge.net/p/mkconf/wiki/SyntaxFunction/feed" rel="self"/><language>en</language><lastBuildDate>Fri, 10 Jul 2026 19:04:57 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/mkconf/wiki/SyntaxFunction/feed" rel="self" type="application/rss+xml"/><item><title>SyntaxFunction modified by Brad Lanam</title><link>https://sourceforge.net/p/mkconf/wiki/SyntaxFunction/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v4
+++ v5
@@ -7,11 +7,11 @@
 ##### Defining a Function

     function &amp;lt;function-name&amp;gt; { &amp;lt;statements&amp;gt; }

-    function &amp;lt;function-name&amp;gt; ( &amp;lt;argument-list&amp;gt; ) { &amp;lt;statements&amp;gt; }
+    function &amp;lt;function-name&amp;gt; ( &amp;lt;parameter-list&amp;gt; ) { &amp;lt;statements&amp;gt; }

-The __function__ statement associates an optional _argument‑list_ and a set of statements with _function‑name_.
+The __function__ statement associates an optional _parameter‑list_ and a set of statements with _function‑name_.

-The _argument‑list_ specifies one or more variable names.  These variables are local to the function's statement block.
+The _parameter‑list_ specifies one or more variable names. These variables are local to the function's statement block.

 ##### Function Examples

&amp;lt;/statements&amp;gt;&amp;lt;/parameter-list&amp;gt;&amp;lt;/function-name&amp;gt;&amp;lt;/statements&amp;gt;&amp;lt;/argument-list&amp;gt;&amp;lt;/function-name&amp;gt;&amp;lt;/statements&amp;gt;&amp;lt;/function-name&amp;gt;&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Brad Lanam</dc:creator><pubDate>Fri, 10 Jul 2026 19:04:57 -0000</pubDate><guid>https://sourceforge.netcb12c7326e1af4efe4401e6188c4ee77c8b96db1</guid></item><item><title>SyntaxFunction modified by Brad Lanam</title><link>https://sourceforge.net/p/mkconf/wiki/SyntaxFunction/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v3
+++ v4
@@ -34,11 +34,10 @@

     helloworld;

-A function call with arguments is passed the arguments as a list or as separate arguments.
+A function call with arguments is passed the arguments as separate values.

     hello 'to you';

-    hello [ 'to you' ];
-    set a [ 'to them' ];
+    set a 'to them';
     hello ${a};

     print2 'hello' 'world';
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Brad Lanam</dc:creator><pubDate>Fri, 10 Jul 2026 13:04:21 -0000</pubDate><guid>https://sourceforge.net3258c2efa629478336058cb2540a10d5f610378d</guid></item><item><title>SyntaxFunction modified by Brad Lanam</title><link>https://sourceforge.net/p/mkconf/wiki/SyntaxFunction/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v2
+++ v3
@@ -2,7 +2,7 @@

 [TOC]

-### Syntax: Functions and Function Calls
+### Syntax: function and Function Calls

 ##### Defining a Function

@@ -11,7 +11,7 @@

 The __function__ statement associates an optional _argument‑list_ and a set of statements with _function‑name_.

-The _argument-list_ specifies one or more variable names.  These variables are local to the function's statement block.
+The _argument‑list_ specifies one or more variable names.  These variables are local to the function's statement block.

 ##### Function Examples

@@ -24,18 +24,24 @@
       print "hello ${arg}";
     }


+    function print2 (a b) {
+      print "${a} ${b}";
+    }
+
 ##### Calling a Function

 A function with no arguments is simply called by using the function name.

     helloworld;

-A function with arguments is passed a list as the argument parameters.
+A function call with arguments is passed the arguments as a list or as separate arguments.


+    hello 'to you';
     hello [ 'to you' ];
-
     set a [ 'to them' ];
     hello ${a};


+    print2 'hello' 'world';
+
 [Wiki Home](Home) &lt;br/&gt;[Syntax](Syntax)

&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Brad Lanam</dc:creator><pubDate>Thu, 09 Jul 2026 20:47:27 -0000</pubDate><guid>https://sourceforge.net48ccd9b03566098bf8a1c2c9db0c228a999de024</guid></item><item><title>SyntaxFunction modified by Brad Lanam</title><link>https://sourceforge.net/p/mkconf/wiki/SyntaxFunction/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v1
+++ v2
@@ -11,7 +11,7 @@

 The __function__ statement associates an optional _argument‑list_ and a set of statements with _function‑name_.

-The _argument-list_ specifies one or more arguments.  These arguments are local to the function's statement block, and are accessed as a variable.
+The _argument-list_ specifies one or more variable names.  These variables are local to the function's statement block.

 ##### Function Examples

&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Brad Lanam</dc:creator><pubDate>Tue, 07 Jul 2026 06:14:44 -0000</pubDate><guid>https://sourceforge.netbeba6b4d8349645dab48f55ae3fc6c958f6521dc</guid></item><item><title>SyntaxFunction modified by Brad Lanam</title><link>https://sourceforge.net/p/mkconf/wiki/SyntaxFunction/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;a href="/p/mkconf/wiki/Home/"&gt;Wiki Home&lt;/a&gt; &lt;br/&gt;&lt;a href="/p/mkconf/wiki/Syntax/"&gt;Syntax&lt;/a&gt;&lt;/p&gt;
&lt;div class="toc"&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="#h-syntax-functions-and-function-calls"&gt;Syntax: Functions and Function Calls&lt;/a&gt;&lt;ul&gt;
&lt;li&gt;&lt;a href="#h-defining-a-function"&gt;Defining a Function&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#h-function-examples"&gt;Function Examples&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#h-calling-a-function"&gt;Calling a Function&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;h3 id="h-syntax-functions-and-function-calls"&gt;Syntax: Functions and Function Calls&lt;/h3&gt;
&lt;h5 id="h-defining-a-function"&gt;Defining a Function&lt;/h5&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;function &amp;lt;function-name&amp;gt; { &amp;lt;statements&amp;gt; }
function &amp;lt;function-name&amp;gt; ( &amp;lt;argument-list&amp;gt; ) { &amp;lt;statements&amp;gt; }
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;The &lt;strong&gt;function&lt;/strong&gt; statement associates an optional &lt;em&gt;argument‑list&lt;/em&gt; and a set of statements with &lt;em&gt;function‑name&lt;/em&gt;.&lt;/p&gt;
&lt;p&gt;The &lt;em&gt;argument-list&lt;/em&gt; specifies one or more arguments.  These arguments are local to the function's statement block, and are accessed as a variable.&lt;/p&gt;
&lt;h5 id="h-function-examples"&gt;Function Examples&lt;/h5&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;function&lt;span class="w"&gt; &lt;/span&gt;helloworld&lt;span class="w"&gt; &lt;/span&gt;{
&lt;span class="w"&gt;  &lt;/span&gt;print&lt;span class="w"&gt; &lt;/span&gt;'hello&lt;span class="w"&gt; &lt;/span&gt;world';
}

function&lt;span class="w"&gt; &lt;/span&gt;hello&lt;span class="w"&gt; &lt;/span&gt;(arg)&lt;span class="w"&gt; &lt;/span&gt;{
&lt;span class="w"&gt;  &lt;/span&gt;#&lt;span class="w"&gt; &lt;/span&gt;remember&lt;span class="w"&gt; &lt;/span&gt;to&lt;span class="w"&gt; &lt;/span&gt;use&lt;span class="w"&gt; &lt;/span&gt;double&lt;span class="w"&gt; &lt;/span&gt;quotes
&lt;span class="w"&gt;  &lt;/span&gt;print&lt;span class="w"&gt; &lt;/span&gt;"hello&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="cp"&gt;${&lt;/span&gt;&lt;span class="n"&gt;arg&lt;/span&gt;&lt;span class="cp"&gt;}&lt;/span&gt;";
}
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;h5 id="h-calling-a-function"&gt;Calling a Function&lt;/h5&gt;
&lt;p&gt;A function with no arguments is simply called by using the function name.&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;helloworld;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;A function with arguments is passed a list as the argument parameters.&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;hello&lt;span class="w"&gt; &lt;/span&gt;[&lt;span class="w"&gt; &lt;/span&gt;'to&lt;span class="w"&gt; &lt;/span&gt;you'&lt;span class="w"&gt; &lt;/span&gt;];

set&lt;span class="w"&gt; &lt;/span&gt;a&lt;span class="w"&gt; &lt;/span&gt;[&lt;span class="w"&gt; &lt;/span&gt;'to&lt;span class="w"&gt; &lt;/span&gt;them'&lt;span class="w"&gt; &lt;/span&gt;];
hello&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="cp"&gt;${&lt;/span&gt;&lt;span class="n"&gt;a&lt;/span&gt;&lt;span class="cp"&gt;}&lt;/span&gt;;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;&lt;a href="/p/mkconf/wiki/Home/"&gt;Wiki Home&lt;/a&gt; &lt;br/&gt;&lt;a href="/p/mkconf/wiki/Syntax/"&gt;Syntax&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Brad Lanam</dc:creator><pubDate>Tue, 07 Jul 2026 04:48:22 -0000</pubDate><guid>https://sourceforge.net207d54e57508f8c88d21692921d8d6be5dff4201</guid></item></channel></rss>