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,5117b1b6391a0e06 X-Google-Attributes: gid103376,public Path: g2news1.google.com!news2.google.com!fu-berlin.de!uni-berlin.de!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: A simple ADA puzzle (I haven't the answer) Date: Sat, 19 Jun 2004 11:31:42 +0200 Message-ID: References: <1087410710.477506@master.nyc.kbcfp.com> <1087474761.60413@master.nyc.kbcfp.com> <7o83d0hf6sqgng2980e1tg7iu864m5m50u@4ax.com> <1in5d05aa4rfqlt7e76gk87ucd3vuru6pm@4ax.com> <1087564576.388973@master.nyc.kbcfp.com> <1087575262.304708@master.nyc.kbcfp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: news.uni-berlin.de spuhopscUOSmTT5MgY0cAgdjVdz1H4qOYSGk8wDvRhpVBlewA= User-Agent: Pan/0.14.2 (This is not a psychotic episode. It's a cleansing moment of clarity.) Xref: g2news1.google.com comp.lang.ada:1688 Date: 2004-06-19T11:31:42+02:00 List-Id: On Fri, 18 Jun 2004 12:14:22 -0400, Hyman Rosen wrote: > Dmitry A. Kazakov wrote: >> Nevertheless, Ada is at least honest about this matter with the >> programmer. > > Limiting the scope of something can be useful of itself; What's the gain of limiting scope here? A relief for lazy programmers, who do not want to create extra *.h files? > there is nothing dishonest about allowing this, even if > access to automatics is not permitted. Limiting scope is useful, but it should be made consistently. Clearly a nested thing should see everything from its scope. Talking about uneducated programmers how would you explain one of them what and when will be visible? Ada's choice was to give a clear, though unpleasant answer, rather than vague "yes, but". -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de