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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,73175d2d01a1b1dd X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,UTF8 Received: by 10.68.21.229 with SMTP id y5mr4837149pbe.1.1317702362911; Mon, 03 Oct 2011 21:26:02 -0700 (PDT) Path: lh7ni11032pbb.0!nntp.google.com!news1.google.com!goblin1!goblin2!goblin.stu.neva.ru!aioe.org!.POSTED!not-for-mail From: =?utf-8?Q?Yannick_Duch=C3=AAne_=28Hibou57?= =?utf-8?Q?=29?= Newsgroups: comp.lang.ada Subject: Re: subprogram must not be deeper than access type Date: Tue, 04 Oct 2011 06:26:01 +0200 Organization: Ada @ Home Message-ID: References: <818752663338654817.822041rmhost.bauhaus-maps.arcor.de@news.arcor.de> <15r7hdzgyr0fc.1djn7vwy23dfg$.dlg@40tude.net> <1uqthqxzri6j3.i18ifhbwmzdc.dlg@40tude.net> <10bj41auuxi17$.42qw3wdubqn3.dlg@40tude.net> NNTP-Posting-Host: wc8b5Gz2brMDJGVD+LmnUQ.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org User-Agent: Opera Mail/11.51 (Linux) X-Notice: Filtered by postfilter v. 0.8.2 Xref: news1.google.com comp.lang.ada:18287 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes Content-Transfer-Encoding: Quoted-Printable Date: 2011-10-04T06:26:01+02:00 List-Id: Le Tue, 27 Sep 2011 09:52:09 +0200, Dmitry A. Kazakov = a =C3=A9crit: > Compare it with declare-begin-end blocks they too have no names and ha= ve = > no > identifiable counterpart in the domain, just an implementation detail.= Except these are just flowed. If you want a block to be possibly invoked= = independently, then you make it a procedure, =E2=80=A6 which is named. If you do not need to access sub=E2=80=91records of a record, then you j= ust don't = need sub=E2=80=91records. If you need to access sub=E2=80=91records, the= n you just create = some named types for these parts, just like with blocks vs procedures. -- = =E2=80=9CSyntactic sugar causes cancer of the semi-colons.=E2=80=9D [Ep= igrams on = Programming =E2=80=94 Alan J. =E2=80=94 P. Yale University] =E2=80=9CStructured Programming supports the law of the excluded muddle.= =E2=80=9D [Idem] Java: Write once, Never revisit