<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to 9: Multiple returns error</title><link>https://sourceforge.net/p/prodevtools/bugs/9/</link><description>Recent changes to 9: Multiple returns error</description><atom:link href="https://sourceforge.net/p/prodevtools/bugs/9/feed.rss" rel="self"/><language>en</language><lastBuildDate>Tue, 14 Feb 2012 16:50:47 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/prodevtools/bugs/9/feed.rss" rel="self" type="application/rss+xml"/><item><title>Multiple returns error</title><link>https://sourceforge.net/p/prodevtools/bugs/9/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;When running a simple call like member(1,[1,2,3]) the SWI Interpreter will run through the list [1,2,3] and after having found 1, it will keep looking until the end of the list, hence it will return true, false. It seems like after returning true, the second value false is only being shown if you write ; after, but you do have the option of writing something else instead, which can cause an error&lt;/p&gt;
&lt;p&gt;Here is an example of a console sequence that will make it break:&lt;br /&gt;
:-member(1,[1,2,3]).&lt;br /&gt;
true&lt;br /&gt;
:-;&lt;br /&gt;
false.&lt;br /&gt;
|member(1,[1,2,3]).&lt;br /&gt;
true&lt;br /&gt;
:-member(1,[1,2,3]).&lt;br /&gt;
Unknown action: m (h for help)&lt;br /&gt;
Action?&lt;br /&gt;
:-&lt;/p&gt;
&lt;p&gt;Cheers&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Tue, 14 Feb 2012 16:50:47 -0000</pubDate><guid>https://sourceforge.net17d73a0337f52bcdd6ad3571b9307cf8012d2322</guid></item></channel></rss>