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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,ae9506fd4dcf7090 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-10-21 08:20:03 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!logbridge.uoregon.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!news-fra1.dfn.de!news-ber1.dfn.de!news.uni-hamburg.de!cs.tu-berlin.de!uni-duisburg.de!not-for-mail From: Georg Bauhaus Newsgroups: comp.lang.ada Subject: Re: Concatenation and Characters Date: Mon, 21 Oct 2002 15:20:03 +0000 (UTC) Organization: GMUGHDU Message-ID: References: <44hp9.807$_u6.205@nwrddc01.gnilink.net> <3DA5AE5F.3030902@attbi.com> <3DB03EF1.EE771923@mmm.com> NNTP-Posting-Host: l1-hrz.uni-duisburg.de X-Trace: a1-hrz.uni-duisburg.de 1035213603 18693 134.91.1.34 (21 Oct 2002 15:20:03 GMT) X-Complaints-To: usenet@news.uni-duisburg.de NNTP-Posting-Date: Mon, 21 Oct 2002 15:20:03 +0000 (UTC) User-Agent: tin/1.5.8-20010221 ("Blue Water") (UNIX) (HP-UX/B.11.00 (9000/800)) Xref: archiver1.google.com comp.lang.ada:29989 Date: 2002-10-21T15:20:03+00:00 List-Id: Programmer Dude wrote: : I'm new to, and just beginning to explore, Ada. It surprised me that : Ada allows evalutation of an uninitialized variable without saying : *something* about it during compile. : : Surely I'm missing something? try this with your Java compiler: int k; // not initialised try { k = Integer.parseInt("abc"); } catch (NumberFormatException nfe) { k = Integer.parseInt("abc"); // That's stupid, o.K., but Sun's compiler is silent. // same for jikes } if (k == 0) // no complaint here { k++; // neither } Is this consistent? -- georg