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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,782d6c8a12248b09 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!postnews.google.com!d70g2000hsc.googlegroups.com!not-for-mail From: Joe Newsgroups: comp.lang.ada Subject: Re: Ada Recursion with strings Date: Tue, 30 Sep 2008 17:13:04 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: NNTP-Posting-Host: 134.240.241.2 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1222819984 28047 127.0.0.1 (1 Oct 2008 00:13:04 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 1 Oct 2008 00:13:04 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: d70g2000hsc.googlegroups.com; posting-host=134.240.241.2; posting-account=ZyfIlgoAAADvwmSv7gUPoyt-iOc2yu_g User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.3) Gecko/2008092515 Ubuntu/8.10 (intrepid) Firefox/3.0.3,gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:7904 Date: 2008-09-30T17:13:04-07:00 List-Id: On Sep 30, 6:24=A0pm, "Jeffrey R. Carter" wrote: > Though you can refer to the function IP_String within itself as > Ip_Packet.IP_String, it would be better to change the name of the paramet= er to > something other than the name of the function, like Current_Result. doh, I didn't even see that. Changing the parameter name solved all my problems. > How many times does the magic number 2 ** 8 appear in this short example? Thrice, I'm not sure I know what you're getting at. > There are other errors in your code; you'll probably figure several of > them out once you get your program to run, and you'll probably figure > another out if you change 123456 in your test to 65536. Thank you Adam for that little hint. The 2**8n numbers now work as expected. One other thing. The image attribute returns a string with a space in front. Is there any way to get rid of the space?