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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,f822ae7b0f7433c1 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!news.glorb.com!news-in.ntli.net!newsrout1-win.ntli.net!ntli.net!news.highwinds-media.com!xara.net!gxn.net!194.159.246.34.MISMATCH!peer-uk.news.demon.net!kibo.news.demon.net!news.demon.co.uk!demon!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Translating an embedded C algorithm Date: Tue, 16 Jan 2007 23:50:47 +0000 Organization: Pushface Message-ID: References: <1168871816.263502.212100@11g2000cwr.googlegroups.com> <45acc0c3$0$22514$39db0f71@news.song.fi> NNTP-Posting-Host: pogner.demon.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.demon.co.uk 1168991445 15252 62.49.19.209 (16 Jan 2007 23:50:45 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Tue, 16 Jan 2007 23:50:45 +0000 (UTC) Cancel-Lock: sha1:H/fIzW+rA7Sein0YzJofNDw3HZ8= User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (darwin) Xref: g2news2.google.com comp.lang.ada:8209 Date: 2007-01-16T23:50:47+00:00 List-Id: Niklas Holsti writes: > I agree with other posters that simply translating this function > into Ada does not give a good comparison between C and Ada. The > first steps in an Ada design would be to consider encapsulation > (packages) and data representation (types), for which the C version > gives no model. I agree too. But it's a one-page example; if we try to fit all those good things in we'll swamp the message (would help to kown what that was).