<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://www.eiffelroom.org" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>eiffelroom - beginner - Comments</title>
 <link>http://www.eiffelroom.org/tag/beginner</link>
 <description>Comments for &quot;beginner&quot;</description>
 <language>en</language>
<item>
 <title>Thanks Manu</title>
 <link>http://www.eiffelroom.org/blog/donthb/looks_like_i_have_to_use_the_blog_to_post_a_question#comment-327</link>
 <description>&lt;p&gt;Looks like some of my questions have been answered over at &lt;a href=&quot;http://groups.eiffel.com&quot;&gt;http://groups.eiffel.com&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Thanks again.&lt;/p&gt;

</description>
 <pubDate>Tue, 11 Sep 2007 11:22:02 -0700</pubDate>
 <dc:creator>DonTHB</dc:creator>
 <guid isPermaLink="false">comment 327 at http://www.eiffelroom.org</guid>
</item>
<item>
 <title>Best place is</title>
 <link>http://www.eiffelroom.org/blog/donthb/looks_like_i_have_to_use_the_blog_to_post_a_question#comment-326</link>
 <description>&lt;p&gt;For the moment, I believe it is best to subscribe to the Eiffel Software mailing list at &lt;a href=&quot;http://groups.eiffel.com&quot;&gt;http://groups.eiffel.com&lt;/a&gt; for such questions. The blog was not exactly designed for that purpose.&lt;/p&gt;

&lt;p&gt;Porting the Eiffel runtime to a new platform is usually relatively easy assuming that your platform has a decent C compiler (i.e. ANSI C) and that the platform provides some of the basic API that you can find on most operating systems, i.e: &lt;ul&gt;
    &lt;li&gt; malloc, free for memory allocation&lt;/li&gt;
    &lt;li&gt; read/write/fopen/... for file/network access&lt;/li&gt;
    &lt;li&gt; other APIs that the runtime may need can also be excluded&lt;/li&gt;
&lt;/ul&gt;

&lt;/p&gt;

&lt;p&gt;Currently, Eiffel Software supports the VxWorks tool chain for embedded development. It has been successfully used on HPPA and PowerPC architecture.&lt;/p&gt;

&lt;p&gt;The way we do it is that you develop on either your platform of choice with EiffelStudio. Then you take the C generated code and compile it for your target platform. Debugging is somewhat limited to C debugging but the generated code is following pretty closely your Eiffel code. If you can define some macros with your debugger then it makes it even easier.&lt;/p&gt;

&lt;p&gt;Hope this helps, Manu&lt;/p&gt;

</description>
 <pubDate>Mon, 10 Sep 2007 10:35:00 -0700</pubDate>
 <dc:creator>manus_eiffel</dc:creator>
 <guid isPermaLink="false">comment 326 at http://www.eiffelroom.org</guid>
</item>
<item>
 <title>Typo?</title>
 <link>http://www.eiffelroom.org/blog/great_jasmini/eiffel_help_for_beginner_please#comment-210</link>
 <description>&lt;p&gt;Hello Jasmine,&lt;/p&gt;

&lt;p&gt;Firstly, it would be easier to read your code if you included it within eiffel XML tags (see MediaWiki syntax when posting).&lt;/p&gt;

&lt;p&gt;I can see a few problems with your code.&lt;/p&gt;

&lt;p&gt;Firstly, it should be &lt;code class=&quot;geshifilter eiffel&quot;&gt;io.&lt;span style=&quot;color: #000060;&quot;&gt;last_string&lt;/span&gt;&lt;/code&gt; (you omitted the io.).  Secondly, I think you need to call &lt;code class=&quot;geshifilter eiffel&quot;&gt;io.&lt;span style=&quot;color: #000060;&quot;&gt;last_string&lt;/span&gt;.&lt;span style=&quot;color: #000060;&quot;&gt;twin&lt;/span&gt;&lt;/code&gt;, which will copy the last string. The problem is that &lt;code class=&quot;geshifilter eiffel&quot;&gt;io.&lt;span style=&quot;color: #000060;&quot;&gt;last_string&lt;/span&gt;&lt;/code&gt; is re-used, so all the entries in your array point to the same object.&lt;/p&gt;

&lt;p&gt;Thirdly, since you know the size of the array, it would be better to size it correctly, and use put, not force.&lt;/p&gt;

&lt;p&gt;Also, avoid loops when you can (not always possible). Agents are better.&lt;/p&gt;

&lt;p&gt;So something like this:&lt;/p&gt;

&lt;p&gt;&lt;div class=&quot;geshifilter eiffel&quot; style=&quot;font-family: monospace;&quot;&gt;&lt;span style=&quot;color: #0600FF; font-weight: bold;&quot;&gt;feature&lt;/span&gt; &lt;span style=&quot;color: #008000; font-style: italic;&quot;&gt;-- Test&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
test &lt;span style=&quot;color: #0600FF; font-weight: bold;&quot;&gt;is&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &lt;span style=&quot;color: #008000; font-style: italic;&quot;&gt;-- Test reading multiple words from standard input&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #0600FF; font-weight: bold;&quot;&gt;local&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;my_array: &lt;a href=&quot;http://www.google.com/search?q=site%3Ahttp%3A%2F%2Fdocs.eiffel.com%2Feiffelstudio%2Flibraries+ARRAY&amp;btnI=I%27m+Feeling+Lucky&quot;&gt;&lt;span style=&quot;color: #800000&quot;&gt;ARRAY&lt;/span&gt;&lt;/a&gt; &lt;span style=&quot;color: #FF0000;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;a href=&quot;http://www.google.com/search?q=site%3Ahttp%3A%2F%2Fdocs.eiffel.com%2Feiffelstudio%2Flibraries+STRING&amp;btnI=I%27m+Feeling+Lucky&quot;&gt;&lt;span style=&quot;color: #800000&quot;&gt;STRING&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #FF0000;&quot;&gt;&amp;#93;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;i: &lt;a href=&quot;http://www.google.com/search?q=site%3Ahttp%3A%2F%2Fdocs.eiffel.com%2Feiffelstudio%2Flibraries+INTEGER&amp;btnI=I%27m+Feeling+Lucky&quot;&gt;&lt;span style=&quot;color: #800000&quot;&gt;INTEGER&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;
&lt;span style=&quot;color: #0600FF; font-weight: bold;&quot;&gt;do&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&lt;span style=&quot;color: #0600FF; font-weight: bold;&quot;&gt;create&lt;/span&gt; my_array.&lt;span style=&quot;color: #000060;&quot;&gt;make&lt;/span&gt; &lt;span style=&quot;color: #FF0000;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #FF0000;&quot;&gt;1&lt;/span&gt;, &lt;span style=&quot;color: #FF0000;&quot;&gt;10&lt;/span&gt;&lt;span style=&quot;color: #FF0000;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&lt;span style=&quot;color: #0600FF; font-weight: bold;&quot;&gt;from&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; i := &lt;span style=&quot;color: #FF0000;&quot;&gt;1&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&lt;span style=&quot;color: #0600FF; font-weight: bold;&quot;&gt;until&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; i &amp;gt; &lt;span style=&quot;color: #FF0000;&quot;&gt;10&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&lt;span style=&quot;color: #0600FF; font-weight: bold;&quot;&gt;loop&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; io.&lt;span style=&quot;color: #000060;&quot;&gt;read_word&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; my_array.&lt;span style=&quot;color: #000060;&quot;&gt;put&lt;/span&gt; &lt;span style=&quot;color: #FF0000;&quot;&gt;&amp;#40;&lt;/span&gt;io.&lt;span style=&quot;color: #000060;&quot;&gt;last_string&lt;/span&gt;.&lt;span style=&quot;color: #000060;&quot;&gt;twin&lt;/span&gt;, i&lt;span style=&quot;color: #FF0000;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; i := i + &lt;span style=&quot;color: #FF0000;&quot;&gt;1&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&lt;span style=&quot;color: #0600FF; font-weight: bold;&quot;&gt;end&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;my_array.&lt;span style=&quot;color: #000060;&quot;&gt;do_all&lt;/span&gt; &lt;span style=&quot;color: #FF0000;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0600FF; font-weight: bold;&quot;&gt;agent&lt;/span&gt; print_line&lt;span style=&quot;color: #FF0000;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #0600FF; font-weight: bold;&quot;&gt;end&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
print_line &lt;span style=&quot;color: #FF0000;&quot;&gt;&amp;#40;&lt;/span&gt;a_string: &lt;a href=&quot;http://www.google.com/search?q=site%3Ahttp%3A%2F%2Fdocs.eiffel.com%2Feiffelstudio%2Flibraries+STRING&amp;btnI=I%27m+Feeling+Lucky&quot;&gt;&lt;span style=&quot;color: #800000&quot;&gt;STRING&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #FF0000;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #0600FF; font-weight: bold;&quot;&gt;is&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &lt;span style=&quot;color: #008000; font-style: italic;&quot;&gt;-- Print `a_string&#039; on standard output followed by a new line.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #0600FF; font-weight: bold;&quot;&gt;require&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;a_string_not_void: a_string /= &lt;span style=&quot;color: #800080;&quot;&gt;Void&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #0600FF; font-weight: bold;&quot;&gt;do&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;print &lt;span style=&quot;color: #FF0000;&quot;&gt;&amp;#40;&lt;/span&gt;a_string + &lt;span style=&quot;color: #0080A0;&quot;&gt;&amp;quot;&lt;span style=&quot;color: #005070; font-weight: bold;&quot;&gt;%N&lt;/span&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #FF0000;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #0600FF; font-weight: bold;&quot;&gt;end&lt;/span&gt;&lt;/div&gt; Colin Adams&lt;/p&gt;

</description>
 <pubDate>Thu, 19 Apr 2007 22:49:43 -0700</pubDate>
 <dc:creator>colin-adams</dc:creator>
 <guid isPermaLink="false">comment 210 at http://www.eiffelroom.org</guid>
</item>
</channel>
</rss>
