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 Path: g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!grolier!oleane.net!oleane!hunter.axlog.fr!nobody From: Jean-Pierre Rosen Newsgroups: comp.lang.ada,comp.lang.fortran,comp.lang.pl1 Subject: Re: Ada vs Fortran for scientific applications Date: Wed, 12 Jul 2006 11:50:29 +0200 Organization: Adalog Message-ID: 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> 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 1152698465 4622 195.25.228.57 (12 Jul 2006 10:01:05 GMT) X-Complaints-To: abuse@oleane.net NNTP-Posting-Date: Wed, 12 Jul 2006 10:01:05 +0000 (UTC) User-Agent: Thunderbird 1.5.0.4 (Windows/20060516) In-Reply-To: Xref: g2news2.google.com comp.lang.ada:5638 comp.lang.fortran:11976 comp.lang.pl1:2004 Date: 2006-07-12T11:50:29+02:00 List-Id: glen herrmannsfeldt a �crit : > It might be that arrays are initialized to zero when created, > but that is more like C's malloc(). (Well, calloc() I suppose.) > Automatic variables, which are scalars, are not initialized > to zero automatically. > My "Java Language Specification" say in 4.5.5: "Each class variable, instance variable, or array component is initialized with a /default value/ when it is created:" and then goes on explaining that numeric types are initialized to 0, boolean to false, and reference types to null. -- --------------------------------------------------------- J-P. Rosen (rosen@adalog.fr) Visit Adalog's web site at http://www.adalog.fr