<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to 31: Recursive funs do not work correctly</title><link>https://sourceforge.net/p/millscript/bugs/31/</link><description>Recent changes to 31: Recursive funs do not work correctly</description><atom:link href="https://sourceforge.net/p/millscript/bugs/31/feed.rss" rel="self"/><language>en</language><lastBuildDate>Tue, 02 Oct 2007 14:33:32 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/millscript/bugs/31/feed.rss" rel="self" type="application/rss+xml"/><item><title>Recursive funs do not work correctly</title><link>https://sourceforge.net/p/millscript/bugs/31/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;There is an issue with recursive functions using the fun syntax, e.g.&lt;/p&gt;
&lt;p&gt;;-) fun recurse( n ) =&amp;gt; recurse( n ); endfun;&lt;br /&gt;
MISHAP : Could not find the definition for this variable&lt;br /&gt;
NAME : recurse&lt;br /&gt;
ORIGIN : origin&lt;br /&gt;
LINE NO. : 1&lt;br /&gt;
PHASE : Compile&lt;br /&gt;
Resetting input and resuming execution&lt;/p&gt;
&lt;p&gt;This occurs because no variable with the name "recurse" exists inside the body of the function.&lt;/p&gt;
&lt;p&gt;We should consider inserting an automatic local variable with the function name, bound to the function. This should be handled in a similar way to the functions arguments.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Kevin Rogers</dc:creator><pubDate>Tue, 02 Oct 2007 14:33:32 -0000</pubDate><guid>https://sourceforge.net3ca6ef69368931546a1d365080397265d475c1a1</guid></item></channel></rss>