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,1a44c40a66c293f3 X-Google-Thread: 1089ad,7e78f469a06e6516 X-Google-Attributes: gid103376,gid1089ad,public X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!130.59.10.21.MISMATCH!kanaga.switch.ch!switch.ch!news.in2p3.fr!in2p3.fr!oleane.net!oleane!hunter.axlog.fr!nobody From: Jean-Pierre Rosen Newsgroups: comp.lang.ada,comp.lang.vhdl Subject: Re: Embedded languages based on early Ada (from "Re: Preferred OS, processor family for running embedded Ada?") Date: Thu, 01 Mar 2007 10:18:30 +0100 Organization: Adalog Message-ID: References: <1172192349.419694.274670@k78g2000cwa.googlegroups.com> <1172239820.896603.222120@k78g2000cwa.googlegroups.com> NNTP-Posting-Host: mailhost.axlog.fr Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Trace: s1.news.oleane.net 1172743263 13139 195.25.228.57 (1 Mar 2007 10:01:03 GMT) X-Complaints-To: abuse@oleane.net NNTP-Posting-Date: Thu, 1 Mar 2007 10:01:03 +0000 (UTC) User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) In-Reply-To: Xref: g2news2.google.com comp.lang.ada:9617 comp.lang.vhdl:7576 Date: 2007-03-01T10:18:30+01:00 List-Id: Colin Paul Gloster a �crit : > procedure Ada_Is_As_Unsafe_As_VHDL_And_GNAT_Will_Not_Even_Warn is > value,Y:Integer; > begin > if False then > Value:=0; > end if; > Y:=Value; > end Ada_Is_As_Unsafe_As_VHDL_And_GNAT_Will_Not_Even_Warn; > --GNAT is an abbreviation of "the GNU Ada Translator". > > I do not know Modula-3 and Oberon. Do they allow such a trivially > detectable accident? > Here is what AdaControl says about it: Error: IMPROPER_INITIALIZATION: use of uninitialized variable: Value Error: IMPROPER_INITIALIZATION: variable "value" used before initialisation> NB: I think this kind of analysis is for external tools, not for compilers. Nice when compilers can provide extra warnings, but that's not their primary job. -- --------------------------------------------------------- J-P. Rosen (rosen@adalog.fr) Visit Adalog's web site at http://www.adalog.fr