<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Functions</title><link>https://sourceforge.net/p/asil/wiki/Functions/</link><description>Recent changes to Functions</description><atom:link href="https://sourceforge.net/p/asil/wiki/Functions/feed" rel="self"/><language>en</language><lastBuildDate>Sun, 16 Mar 2014 20:08:19 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/asil/wiki/Functions/feed" rel="self" type="application/rss+xml"/><item><title>Functions modified by Bharath Gaddam</title><link>https://sourceforge.net/p/asil/wiki/Functions/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v4
+++ v5
@@ -1,4 +1,4 @@
-Functions (abbreviated as "func") are basically commands that return a value.  The syntax is mostly the same.  The only change in the declaration is the addition of a return type.  You can call them as you would a procedure unless you call them inside another statement.  In that case, you need to enclose the parameters in parentheses.
+Functions (abbreviated as &amp;ldquo;func&amp;rdquo;) are basically commands that return a value.  The syntax is mostly the same.  The only change in the declaration is the addition of a return type.  You can call them as you would a procedure unless you call them inside another statement.  In that case, you need to enclose the parameters in parentheses.

 Declaration
 -----------
@@ -16,7 +16,7 @@
 ~~~~
 :::text
 myFunc Left 3 ' Return value ignored
-var x# = myFunc Right 37 ' Valid as long as you aren't calling myFunc inside another function, procedure, or complex statement.
+var x# = myFunc Right 37 ' Valid as long as you aren’t calling myFunc inside another function, procedure, or complex statement.
 print myFunc Left 34 Right 343 ' Invalid!!!!
 print myFunc(Left 34 Right 343) ' Correct
 ~~~~
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Bharath Gaddam</dc:creator><pubDate>Sun, 16 Mar 2014 20:08:19 -0000</pubDate><guid>https://sourceforge.net76a3f909f37413ac70252cedd213b0c9eac15ce3</guid></item><item><title>Functions modified by Will Pittenger</title><link>https://sourceforge.net/p/asil/wiki/Functions/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v3
+++ v4
@@ -1,7 +1,9 @@
 Functions (abbreviated as "func") are basically commands that return a value.  The syntax is mostly the same.  The only change in the declaration is the addition of a return type.  You can call them as you would a procedure unless you call them inside another statement.  In that case, you need to enclose the parameters in parentheses.

-### Declaration ###
+Declaration
+-----------
 ~~~~
+:::text
 function myFunc [\Left\ left#] [\Right\ right#]
     returns int
   ' Do something
@@ -9,8 +11,10 @@
 ~~~~
 Notice the return type is on its own line and is double indented.  This is to make it stand out.  (The exception is a function in prototype-form only such as you would have inside an interface or when declaring a delegate.  See [Interfaces] and [Delegates] for those details.)  Early returns are allowed.

-### Calls to myFunc ###
+Calls to &lt;code&gt;myFunc&lt;/code&gt;
+----------------------------
 ~~~~
+:::text
 myFunc Left 3 ' Return value ignored
 var x# = myFunc Right 37 ' Valid as long as you aren't calling myFunc inside another function, procedure, or complex statement.
 print myFunc Left 34 Right 343 ' Invalid!!!!
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Will Pittenger</dc:creator><pubDate>Sun, 16 Feb 2014 10:30:00 -0000</pubDate><guid>https://sourceforge.netbdba8985f46234ff98ee82536606e6015a484d12</guid></item><item><title>Functions modified by Will Pittenger</title><link>https://sourceforge.net/p/asil/wiki/Functions/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v2
+++ v3
@@ -7,7 +7,7 @@
   ' Do something
   return 3
 ~~~~
-Notice the return type is on its own line and is double indented.  This is to make it stand out.  Early returns are allowed.
+Notice the return type is on its own line and is double indented.  This is to make it stand out.  (The exception is a function in prototype-form only such as you would have inside an interface or when declaring a delegate.  See [Interfaces] and [Delegates] for those details.)  Early returns are allowed.

 ### Calls to myFunc ###
 ~~~~
@@ -16,4 +16,3 @@
 print myFunc Left 34 Right 343 ' Invalid!!!!
 print myFunc(Left 34 Right 343) ' Correct
 ~~~~
-Note: Even though ASIL isn't case sensitive, all references to an identifier should be displayed as declared.  So you could type "myfunc", "Myfunc", "MyFunc", or "MYFUNC".  Regardless, the identifier is still "myFunc" and should be shown in code as such.
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Will Pittenger</dc:creator><pubDate>Thu, 13 Feb 2014 21:05:02 -0000</pubDate><guid>https://sourceforge.net23dd500985ca5d14a528943dc6408cb7b3fb1c56</guid></item><item><title>Functions modified by Will Pittenger</title><link>https://sourceforge.net/p/asil/wiki/Functions/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v1
+++ v2
@@ -1,4 +1,4 @@
-Functions (abbreviated as "func") are basically procedures that return a value.  The syntax is mostly the same.  The only change in the declaration is the addition of a return type.  You can call them as you would a procedure unless you call them inside another statement.  In that case, you need to enclose the parameters in parentheses.
+Functions (abbreviated as "func") are basically commands that return a value.  The syntax is mostly the same.  The only change in the declaration is the addition of a return type.  You can call them as you would a procedure unless you call them inside another statement.  In that case, you need to enclose the parameters in parentheses.

 ### Declaration ###
 ~~~~
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Will Pittenger</dc:creator><pubDate>Tue, 04 Feb 2014 13:37:03 -0000</pubDate><guid>https://sourceforge.net927b8ec4735a123970c85d2faef82d43822c8eec</guid></item><item><title>Functions modified by Will Pittenger</title><link>https://sourceforge.net/p/asil/wiki/Functions/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Functions (abbreviated as "func") are basically procedures that return a value.  The syntax is mostly the same.  The only change in the declaration is the addition of a return type.  You can call them as you would a procedure unless you call them inside another statement.  In that case, you need to enclose the parameters in parentheses.&lt;/p&gt;
&lt;h3 id="declaration"&gt;Declaration&lt;/h3&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nx"&gt;myFunc&lt;/span&gt; &lt;span class="cp"&gt;[&lt;/span&gt;&lt;span class="o"&gt;\&lt;/span&gt;&lt;span class="nb"&gt;Left&lt;/span&gt;&lt;span class="o"&gt;\&lt;/span&gt; &lt;span class="nb"&gt;left&lt;/span&gt;&lt;span class="err"&gt;#&lt;/span&gt;&lt;span class="cp"&gt;]&lt;/span&gt; &lt;span class="cp"&gt;[&lt;/span&gt;&lt;span class="o"&gt;\&lt;/span&gt;&lt;span class="nb"&gt;Right&lt;/span&gt;&lt;span class="o"&gt;\&lt;/span&gt; &lt;span class="nb"&gt;right&lt;/span&gt;&lt;span class="err"&gt;#&lt;/span&gt;&lt;span class="cp"&gt;]&lt;/span&gt;
    &lt;span class="nx"&gt;returns&lt;/span&gt; &lt;span class="kr"&gt;int&lt;/span&gt;
  &lt;span class="err"&gt;'&lt;/span&gt; &lt;span class="nx"&gt;Do&lt;/span&gt; &lt;span class="nx"&gt;something&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Notice the return type is on its own line and is double indented.  This is to make it stand out.  Early returns are allowed.&lt;/p&gt;
&lt;h3 id="calls-to-myfunc"&gt;Calls to myFunc&lt;/h3&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="nx"&gt;myFunc&lt;/span&gt; &lt;span class="nx"&gt;Left&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt; &lt;span class="s1"&gt;' Return value ignored&lt;/span&gt;
&lt;span class="s1"&gt;var x# = myFunc Right 37 '&lt;/span&gt; &lt;span class="nx"&gt;Valid&lt;/span&gt; &lt;span class="nx"&gt;as&lt;/span&gt; &lt;span class="kr"&gt;long&lt;/span&gt; &lt;span class="nx"&gt;as&lt;/span&gt; &lt;span class="nx"&gt;you&lt;/span&gt; &lt;span class="nx"&gt;aren&lt;/span&gt;&lt;span class="s1"&gt;'t calling myFunc inside another function, procedure, or complex statement.&lt;/span&gt;
&lt;span class="s1"&gt;print myFunc Left 34 Right 343 '&lt;/span&gt; &lt;span class="nx"&gt;Invalid&lt;/span&gt;&lt;span class="o"&gt;!!!!&lt;/span&gt;
&lt;span class="nx"&gt;print&lt;/span&gt; &lt;span class="nx"&gt;myFunc&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;Left&lt;/span&gt; &lt;span class="mi"&gt;34&lt;/span&gt; &lt;span class="nx"&gt;Right&lt;/span&gt; &lt;span class="mi"&gt;343&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="err"&gt;'&lt;/span&gt; &lt;span class="nx"&gt;Correct&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Note: Even though ASIL isn't case sensitive, all references to an identifier should be displayed as declared.  So you could type "myfunc", "Myfunc", "MyFunc", or "MYFUNC".  Regardless, the identifier is still "myFunc" and should be shown in code as such.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Will Pittenger</dc:creator><pubDate>Sun, 02 Feb 2014 07:30:05 -0000</pubDate><guid>https://sourceforge.net6e90c1e7761952c3e609baead7b0a6a2a13a50f7</guid></item></channel></rss>