comp.lang.ada
 help / color / mirror / Atom feed
From: "Robert I. Eachus" <rieachus@attbi.com>
Subject: Re: Real data for a change in the assignment operators and Bounded_String discussions.
Date: Mon, 07 Jul 2003 15:49:10 GMT
Date: 2003-07-07T15:49:10+00:00	[thread overview]
Message-ID: <3F099661.5060202@attbi.com> (raw)
In-Reply-To: bebf8k$hq6$1@a1-hrz.uni-duisburg.de

Georg Bauhaus wrote:
> And the final message is:
> 
> : georg@strudel:/tmp$   ./whole
> Killed
> georg@strudel:/tmp$ 
> 
> after a few minutes and total exhaustion of physical memory
> and swap space. Another interesting C program :-)

Don't lose any sleep over this.  The only "debugging" I did on the Ada 
version was to add a couple of New_Line calls, and remove a couple of 
blanks from the Put calls to make the output look prettier.  And that is 
sort of the point. If I hadn't been "publishing" the code, I wouldn't 
have even done that, just used the results and gone on.  In Ada, I could 
do some pretty fancy string manipulation in "throwaway" code just to 
make the overall program simpler.

I am sure I could debug my way through to a working version of a similar 
C program.  But I certainly wouldn't try to do it with the same style of 
pasting string sections together from long and unhappy experience.  In C 
(and C++) I'd much rather write the program to work on one line of input 
at a time, with only one (malloced) buffer.

-- 

                                                        Robert I. Eachus

�In an ally, considerations of house, clan, planet, race are 
insignificant beside two prime questions, which are: 1. Can he shoot? 2. 
Will he aim at your enemy?� -- from the Laiden novels by Sharon Lee and 
Steve Miller.




  parent reply	other threads:[~2003-07-07 15:49 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-04  3:41 Real data for a change in the assignment operators and Bounded_String discussions Robert I. Eachus
2003-07-05  1:29 ` Inc (was: Real data for a change in the assignment operators and Bounded_String discussions. ) Alexander Kopilovitch
2003-07-07 21:31   ` Gautier Write-only
2003-07-07 21:35     ` Inc (was: Real data for a change in the assignment operators and Larry Kilgallen
2003-07-08  3:53       ` Gautier Write-only
2003-07-08 20:50       ` Alexander Kopilovitch
2003-07-07 21:42     ` Inc (was: Real data for a change in the assignment operators and Bounded_String discussions. ) Vinzent Hoefler
2003-07-08  4:04       ` Gautier Write-only
2003-07-07  4:27 ` Real data for a change in the assignment operators and Bounded_String discussions Hyman Rosen
2003-07-07  9:27   ` Georg Bauhaus
2003-07-07  9:41     ` Georg Bauhaus
2003-07-07 14:29       ` Hyman Rosen
2003-07-07 17:29         ` Georg Bauhaus
2003-07-07 19:01           ` Hyman Rosen
2003-07-07 15:49       ` Robert I. Eachus [this message]
2003-07-07 13:46     ` Hyman Rosen
2003-07-07 16:03       ` Robert I. Eachus
2003-07-07 18:52         ` Hyman Rosen
replies disabled

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