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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,26aa6d7095c151 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-10-23 02:15:00 PST Message-ID: <3DB666F1.66C3CB80@lml.ls.fi.upm.es> Date: Wed, 23 Oct 2002 11:08:01 +0200 From: Manuel Collado X-Mailer: Mozilla 4.75 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Porting from Modula-2 to Ada References: <3DAFC542.152C0EE0@lml.ls.fi.upm.es> <3DB50455.E7964582@lml.ls.fi.upm.es> <3DB59F92.1060600@acm.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 138.100.10.20 X-Trace: 23 Oct 2002 11:05:11 +0100, 138.100.10.20 Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!news-ge.switch.ch!news.rediris.es!news-2.rediris.es!138.100.251.9.MISMATCH!news.upm.es!138.100.10.20 Xref: archiver1.google.com comp.lang.ada:30063 Date: 2002-10-23T11:08:01+02:00 List-Id: 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