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,c4cb2c432feebd9d X-Google-Thread: 1094ba,c4cb2c432feebd9d X-Google-Thread: 101deb,15c6ed4b761968e6 X-Google-Attributes: gid103376,gid1094ba,gid101deb,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.comcast.com!news.comcast.com.POSTED!not-for-mail NNTP-Posting-Date: Tue, 11 Jul 2006 10:15:56 -0500 Date: Tue, 11 Jul 2006 08:16:28 -0700 From: glen herrmannsfeldt User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada,comp.lang.fortran,comp.lang.pl1 Subject: Re: Ada vs Fortran for scientific applications References: <0ugu4e.4i7.ln@hunter.axlog.fr> <%P_cg.155733$eR6.26337@bgtnsc04-news.ops.worldnet.att.net> <6H9dg.10258$S7.9150@news-server.bigpond.net.au> <1hfv5wb.1x4ab1tbdzk7eN%nospam@see.signature> <2006052509454116807-gsande@worldnetattnet> <1kzktalo9krea$.z8n9wev45xct$.dlg@40tude.net> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <_5idnW0Lk4kxXS7ZnZ2dnUVZ_oOdnZ2d@comcast.com> NNTP-Posting-Host: 24.18.174.4 X-Trace: sv3-lcsdT8otgZKZRw1M3HwVMuMOdMcwYye2gYOzv/lfSdK7GMBXKr5HfSYfgGil5uKTPtuAPFmd3dJm88p!yc6jCSlJ7krIH5ovmX1Z98n6dZ2cLog7g0g1V1kZYn9asbs2AYuda8meMkx/81w5uqSND7FeQuA5!XANgqA== X-Complaints-To: abuse@comcast.net X-DMCA-Complaints-To: dmca@comcast.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.32 Xref: g2news2.google.com comp.lang.ada:5616 comp.lang.fortran:11940 comp.lang.pl1:1983 Date: 2006-07-11T08:16:28-07:00 List-Id: John W. Kennedy wrote: (snip regarding compile time detection of references to uninitialized variables.) > (Java is the only language I know of that will actually fail the compile > unless it /knows/ that every variable is initialized before use in every > possible path.) I am not sure what the language specification says, but Sun compilers do that. (Note: for scalars only, not arrays.) I believe the compilers are getting better. I used to have problems with things like: if(i==3) x=1; else x=2; not being recognized as initializing x, but as I understand it compilers now recognize that case. I believe there are still cases where a variable is sure to be initialized but the compiler doesn't notice it. Also, tests are done on the class (compiled) file at load time to protect against many errors. -- glen