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-Thread: 103376,c370342fe303517b X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news4.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!208.49.83.146.MISMATCH!uns-out.usenetserver.com!news.usenetserver.com!pc02.usenetserver.com!news.flashnewsgroups.com-b7.4zTQh5tI3A!not-for-mail Newsgroups: comp.lang.ada Subject: Re: C Interface example References: <1170516037.435847.326440@p10g2000cwp.googlegroups.com> <87irejmd3v.fsf@ludovic-brenta.org> <1170524386.559414.28960@j27g2000cwj.googlegroups.com> From: Stephen Leake Date: Sun, 04 Feb 2007 09:34:39 -0500 Message-ID: User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (windows-nt) Cancel-Lock: sha1:ligVTo+cyXrAvBqpiuwJZ5gaQFw= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@flashnewsgroups.com Organization: FlashNewsgroups.com X-Trace: b63b045c5ef05759e00d422075 Xref: g2news2.google.com comp.lang.ada:8911 Date: 2007-02-04T09:34:39-05:00 List-Id: artifact.one@googlemail.com writes: > Yes, the original intent in C was to be able to do this sort of thing: > > vec_addNf(vec_addNf(va, vb), vec_addNf(vc, vd)); > > ...which may or may not be possible or desirable in Ada. In Ada, this should be: va := va + vb + vc + vd; Note that I'm not sure va was the intended result, from the C code. But I'm _very_ sure what the intended result is from the Ada code. -- -- Stephe