From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,49ddd117f54c2d X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!newshub.sdsu.edu!elnk-nf2-pas!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!newsread1.news.pas.earthlink.net.POSTED!a6202946!not-for-mail From: "Jeffrey R. Carter" Organization: jrcarter at acm dot org User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: New to Ada, noticing something strange. References: <1128014442.343461.185800@g49g2000cwa.googlegroups.com> In-Reply-To: <1128014442.343461.185800@g49g2000cwa.googlegroups.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <_xW_e.4596$zQ3.2632@newsread1.news.pas.earthlink.net> Date: Thu, 29 Sep 2005 18:39:54 GMT NNTP-Posting-Host: 67.3.211.177 X-Complaints-To: abuse@earthlink.net X-Trace: newsread1.news.pas.earthlink.net 1128019194 67.3.211.177 (Thu, 29 Sep 2005 11:39:54 PDT) NNTP-Posting-Date: Thu, 29 Sep 2005 11:39:54 PDT Xref: g2news1.google.com comp.lang.ada:5276 Date: 2005-09-29T18:39:54+00:00 List-Id: mike.martelli@gmail.com wrote: > (I removed some extra white space so it would align better in the post) You removed more than that. > I have some Put()/Put_Line() statements in AddDigits() for debugging > purposes. The problem is in Convert2Character(), nothing was ever > being returned by that function. I added the Put_Line(strChar) to make > sure a correct value was being passed to it. Once I added that > Put_Line() a value was being returned by the function and it was > correct. It seems that a Put_Line() is needed for some reason or it > does not do what it is supposed to do. You don't have anything named Convert2character, nor do you have Chardigit or Carry declared anywhere, and you index a String by 1 without any reason to expect that 1 is in its range, so it's hard to tell what might be happening. I'm also not sure what you mean by nothing being returned; do you mean execution entered the function and stopped? An exception is raised? In any case, if the only change you made was to add a Put_Line, then it appears you have a compiler bug. You didn't mention what compiler you're using, but you might want to inform your compiler vendor. -- Jeff Carter "There's no messiah here. There's a mess all right, but no messiah." Monty Python's Life of Brian 84