comp.lang.ada
 help / color / mirror / Atom feed
From: Manuel Collado <m.collado@lml.ls.fi.upm.es>
Subject: Re: Porting from Modula-2 to Ada
Date: Wed, 23 Oct 2002 11:08:01 +0200
Date: 2002-10-23T11:08:01+02:00	[thread overview]
Message-ID: <3DB666F1.66C3CB80@lml.ls.fi.upm.es> (raw)
In-Reply-To: 3DB59F92.1060600@acm.org

Jeffrey Carter wrote:
> 
> Manuel Collado wrote:
> > Thanks to all who respond. After considering the suggestions, I think
> > I'll keep the initial proposed scheme. It doesn't follow the Ada
> > programming style, but is straightforward. And in some cases it can be
> > reduced in fact to passing the address, because the size is already an
> > explicit parameter in some procedures.
> 
> This is the way C does it. Decades of experience with C have shown that
> this is the source of many subtle errors.

I'm certainly aware of that. But I'm not writing new code, but simply
trying to precisely reproduce the behaviour of legacy, hopefully
debugged code.

> 
> Enjoy your long nights with the debugger.

I hardly use debuggers. In case of errors, I insert assertions and print
sentences to selectively trace program's execution. And I do extensive
unit testing.
-- 
To reply by e-mail, please remove the extra dot
in the given address:  m.collado -> mcollado



      reply	other threads:[~2002-10-23  9:08 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-18  8:24 Porting from Modula-2 to Ada Manuel Collado
2002-10-18  9:45 ` Bernd Specht
2002-10-18 10:33   ` Lutz Donnerhacke
2002-10-18 10:55     ` Jeffrey Creem
2002-10-18 11:21       ` Lutz Donnerhacke
2002-10-18 22:01         ` Jeffrey Creem
2002-10-18 21:29     ` Jeffrey Carter
2002-10-18 21:39       ` Jeffrey Carter
2002-10-18 11:20 ` Nicolas Cailín Paul Gloster
2002-10-18 15:14   ` Pat Rogers
2002-10-24 14:51     ` Colin Paul Gloster
2002-10-25  3:43       ` Dennis Lee Bieber
2003-02-04 14:12       ` Colin Paul Gloster
2003-02-09  6:07         ` Robert I. Eachus
2002-10-19 13:30 ` SteveD
2002-10-22  7:48   ` Manuel Collado
2002-10-22  7:55 ` Manuel Collado
2002-10-22 18:56   ` Jeffrey Carter
2002-10-23  9:08     ` Manuel Collado [this message]
replies disabled

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