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.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,86c750b8474bf6d5 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!postnews.google.com!p25g2000hsf.googlegroups.com!not-for-mail From: Britt Snodgrass Newsgroups: comp.lang.ada Subject: Re: About String Date: Mon, 9 Jun 2008 07:27:05 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <484ABED3.8040909@obry.net> <484b802a$0$23844$4f793bc4@news.tdc.fi> <484d0d5c$0$7537$9b4e6d93@newsspool1.arcor-online.net> NNTP-Posting-Host: 205.175.225.24 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1213021626 16020 127.0.0.1 (9 Jun 2008 14:27:06 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 9 Jun 2008 14:27:06 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: p25g2000hsf.googlegroups.com; posting-host=205.175.225.24; posting-account=rdRzuwoAAAAyW3CSBhs_xgfCUJSc1aNt User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; InfoPath.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727),gzip(gfe),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:633 Date: 2008-06-09T07:27:05-07:00 List-Id: On Jun 9, 6:00=A0am, Georg Bauhaus wrote: > Robert A Duff schrieb: > > > Maciej Sobczak writes: > > >> You did not state it explicitly, but I presume that you allow mixing > >> declarations with executable code ("as in Java and other languages")? > > > Yes, if I ran the circus, I would allow that. =A0I really find it annoyi= ng > > that I have to add 3 useless lines of code (declare/begin/end) and an > > extra level of indentation, when all I wanted to do was declare > > a very-local object. > > I find it annoying when I have to search other people's > procedures for variables. A typical sequence of statements is > sprinkled with declarations (Java, C, Perl, ...) and no oher > indication of the newly introduced variables other than > two identifiers before "=3D" or ";". > > As Dmitry says, there is an *implicit* scope only. > When I'm up the wall I speculate whether this viewpoint on language > use is driven by a desire to achieve income by obfuscation? > The tempting quick hack? > > To me, =A0ad hoc variables between statements and Java classes fully > named in source but without "import" at the head of the source file > are similar in character. > > The good news is: computers can help us with getting the > necessary "paper work" (declare block etc.) done; use a > good editor. I very much agree. The requirement for an explicit declaritive region is a very good thing for reasons of readability and maintainability. If variables could be declared anywhere in a procedure then it really would be a circus. - Britt