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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,810843c254562cd8 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!feeder.news-service.com!news.netcologne.de!newsfeed-fusi2.netcologne.de!feeder.erje.net!news-1.dfn.de!news.dfn.de!news.uni-weimar.de!not-for-mail From: stefan-lucks@see-the.signature Newsgroups: comp.lang.ada Subject: Re: Embedded systems programmers worldwide earn failing grades in C Date: Tue, 26 Jan 2010 15:09:20 +0100 Organization: Bauhaus-Universitaet Weimar Message-ID: References: <3aadd38d-0496-4f61-ba82-d0e1f0c983d2@a32g2000yqm.googlegroups.com> <7roqb2Fas8U1@mid.individual.net> <5pppl5lm5h1eerr6aesru2n9poois8vesc@4ax.com> Reply-To: stefan-lucks@see-the.signature NNTP-Posting-Host: medsec1.medien.uni-weimar.de Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: tigger.scc.uni-weimar.de 1264511469 11359 141.54.178.228 (26 Jan 2010 13:11:09 GMT) X-Complaints-To: news@tigger.scc.uni-weimar.de NNTP-Posting-Date: Tue, 26 Jan 2010 13:11:09 +0000 (UTC) X-X-Sender: lucks@medsec1.medien.uni-weimar.de In-Reply-To: Xref: g2news1.google.com comp.lang.ada:8824 Date: 2010-01-26T15:09:20+01:00 List-Id: On Tue, 26 Jan 2010, Brian Drummond wrote: > On Mon, 25 Jan 2010 15:22:24 -0800, Keith Thompson wrote: > > >Brian Drummond writes: > >[...] > > > >A better answer IMHO is: > > > > Seconds_Per_Year : constant := 60 * 60 * 24 * 365; > > > >Why specify subtype Natural if you don't need to? Yes, this either compiles and does what one would expect, or it doesn't compile -- depending on compiler and target. > My feeling is that it's easier to find the right answers with Ada, but a > feeling isn't very convincing. The good thing about Ada is that very often the compiler just won't compile your flawed program, instead of doing some some "random" stuff, as in many other languages. So long -- ------ Stefan Lucks -- Bauhaus-University Weimar -- Germany ------ Stefan dot Lucks at uni minus weimar dot de ------ I love the taste of Cryptanalysis in the morning! ------