<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">
  <channel>
    <title>MaplePrimes - answers and comments on Question, Programming Error Message</title>
    <link>http://www.mapleprimes.com/questions/143870-Programming-Error-Message</link>
    <language>en-us</language>
    <copyright>2026 Maplesoft, A Division of Waterloo Maple Inc.</copyright>
    <generator>Maplesoft Document System</generator>
    <lastBuildDate>Tue, 09 Jun 2026 05:09:33 GMT</lastBuildDate>
    <pubDate>Tue, 09 Jun 2026 05:09:33 GMT</pubDate>
    <itunes:subtitle />
    <itunes:summary />
    <description>The latest answers and comments added to the Question, Programming Error Message</description>
    <image>
      <url>http://www.mapleprimes.com/images/mapleprimeswhite.jpg</url>
      <title>MaplePrimes - answers and comments on Question, Programming Error Message</title>
      <link>http://www.mapleprimes.com/questions/143870-Programming-Error-Message</link>
    </image>
    <item>
      <title>No semicolon for proc line</title>
      <link>http://www.mapleprimes.com/questions/143870-Programming-Error-Message?ref=Feed:MaplePrimes:Programming Error Message:Comments#answer143872</link>
      <itunes:summary>&lt;p&gt;The &lt;strong&gt;proc&lt;/strong&gt; line should not end with a semicolon.&lt;/p&gt;
&lt;p&gt;There is also a mistake in your type declaration, but the mistake will unfortunately not generate an error message. If you want a parameter to be restricted to having both type A and type B, then the type is &lt;strong&gt;And(A,B)&lt;/strong&gt;. So with that the proc line becomes&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Grade:= proc(mark::And(nonnegative,numeric))&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;You should look up a user named Rupunzel on this forum. She got &lt;a href="http://www.mapleprimes.com/questions/143575-How-Do-I-Set-Up-A-Procedure-For-A-Table-Of-Data"&gt;help about this very same homework problem&lt;/a&gt; in two separate threads a few days ago. There's a Users tab at the top of the page.&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;The &lt;strong&gt;proc&lt;/strong&gt; line should not end with a semicolon.&lt;/p&gt;
&lt;p&gt;There is also a mistake in your type declaration, but the mistake will unfortunately not generate an error message. If you want a parameter to be restricted to having both type A and type B, then the type is &lt;strong&gt;And(A,B)&lt;/strong&gt;. So with that the proc line becomes&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Grade:= proc(mark::And(nonnegative,numeric))&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;You should look up a user named Rupunzel on this forum. She got &lt;a href="http://www.mapleprimes.com/questions/143575-How-Do-I-Set-Up-A-Procedure-For-A-Table-Of-Data"&gt;help about this very same homework problem&lt;/a&gt; in two separate threads a few days ago. There's a Users tab at the top of the page.&lt;/p&gt;</description>
      <guid>143872</guid>
      <pubDate>Mon, 25 Feb 2013 02:08:14 Z</pubDate>
      <itunes:author>Carl Love</itunes:author>
      <author>Carl Love</author>
    </item>
    <item>
      <title>Shift-enter or Code Edit Region</title>
      <link>http://www.mapleprimes.com/questions/143870-Programming-Error-Message?ref=Feed:MaplePrimes:Programming Error Message:Comments#answer143907</link>
      <itunes:summary>&lt;p&gt;Yes, the "problem" is caused by the lack of &lt;strong&gt;end proc&lt;/strong&gt;. You can avoid the problem two ways:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;When you want a blank line, use Shift-Enter (or Shift-Return) instead of Enter (or Return). Don't hit Enter until you're ready for the procedure to be processed ("parsed" is the lingo). If you do hit Enter prematurely, just ignore any error message and put the cursor back where you want it. This takes a bit of getting used to, which brings us to my preferred method...&lt;/li&gt;
&lt;li&gt;From the Insert Menu, create a Code Edit Region. This gives you a box, a subwindow, that you can use like Microsoft Notepad or other primitive text editor. Here, Enter just gives you a new line. When you want the code to be parsed (and Executed, if it's more than just a procedure definition), right-click in the box and select Execute Code. You can resize the box by left-clicking in it and then dragging one of the blue square dots on the sides or corners. But the box doesn't need to be big enough to hold your code; it will scroll if needed.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Put a semicolon after the &lt;strong&gt;end proc&lt;/strong&gt;.&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;Yes, the "problem" is caused by the lack of &lt;strong&gt;end proc&lt;/strong&gt;. You can avoid the problem two ways:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;When you want a blank line, use Shift-Enter (or Shift-Return) instead of Enter (or Return). Don't hit Enter until you're ready for the procedure to be processed ("parsed" is the lingo). If you do hit Enter prematurely, just ignore any error message and put the cursor back where you want it. This takes a bit of getting used to, which brings us to my preferred method...&lt;/li&gt;
&lt;li&gt;From the Insert Menu, create a Code Edit Region. This gives you a box, a subwindow, that you can use like Microsoft Notepad or other primitive text editor. Here, Enter just gives you a new line. When you want the code to be parsed (and Executed, if it's more than just a procedure definition), right-click in the box and select Execute Code. You can resize the box by left-clicking in it and then dragging one of the blue square dots on the sides or corners. But the box doesn't need to be big enough to hold your code; it will scroll if needed.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Put a semicolon after the &lt;strong&gt;end proc&lt;/strong&gt;.&lt;/p&gt;</description>
      <guid>143907</guid>
      <pubDate>Mon, 25 Feb 2013 23:11:37 Z</pubDate>
      <itunes:author>Carl Love</itunes:author>
      <author>Carl Love</author>
    </item>
    <item>
      <title>Same Error</title>
      <link>http://www.mapleprimes.com/questions/143870-Programming-Error-Message?ref=Feed:MaplePrimes:Programming Error Message:Comments#comment143889</link>
      <itunes:summary>&lt;p&gt;Thank you very much!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;But.. I tried the proc line you suggested, and the same error still comes up.&lt;/p&gt;
&lt;p&gt;I have not added an end proc line yet, maybe that is were I am going wrong? It still doesn't explain the error message&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;Thank you very much!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;But.. I tried the proc line you suggested, and the same error still comes up.&lt;/p&gt;
&lt;p&gt;I have not added an end proc line yet, maybe that is were I am going wrong? It still doesn't explain the error message&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description>
      <guid>143889</guid>
      <pubDate>Mon, 25 Feb 2013 14:15:12 Z</pubDate>
      <itunes:author>TM0161</itunes:author>
      <author>TM0161</author>
    </item>
  </channel>
</rss>