comp.lang.ada
 help / color / mirror / Atom feed
From: Joe <joesmoe10@gmail.com>
Subject: Re: Ada Recursion with strings
Date: Tue, 30 Sep 2008 17:13:04 -0700 (PDT)
Date: 2008-09-30T17:13:04-07:00	[thread overview]
Message-ID: <b6494560-0154-463d-a280-e17ec0a953b7@d70g2000hsc.googlegroups.com> (raw)
In-Reply-To: KGxEk.366896$yE1.159169@attbi_s21

On Sep 30, 6:24 pm, "Jeffrey R. Carter"
<spam.jrcarter....@spam.acm.org> 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 parameter 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?



  reply	other threads:[~2008-10-01  0:13 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-30 20:30 Ada Recursion with strings Joe
2008-09-30 22:24 ` Adam Beneschan
2008-09-30 22:24 ` Jeffrey R. Carter
2008-10-01  0:13   ` Joe [this message]
2008-10-01  0:27     ` Jeffrey R. Carter
2008-10-01  1:15       ` Robert A Duff
2008-10-01 11:34         ` Jeffrey R. Carter
2008-10-01 14:29           ` Adam Beneschan
2008-10-01 15:18             ` Jean-Pierre Rosen
2008-10-01 16:47               ` Georg Bauhaus
2008-10-02  7:24               ` Niklas Holsti
2008-10-02  8:18                 ` Ludovic Brenta
2008-10-03  6:54             ` Maciej Sobczak
2008-10-03  7:38               ` Jean-Pierre Rosen
2008-10-03  9:06               ` Dmitry A. Kazakov
2008-10-01  0:28     ` Adam Beneschan
2008-10-01  9:48       ` Georg Bauhaus
2008-10-01 10:22         ` Dmitry A. Kazakov
2008-10-01  3:01 ` anon
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox