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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,bd45e29f9dafca87 X-Google-Attributes: gid103376,public From: Robert Iredell Eachus Subject: Re: bitwise comparators Date: 2000/02/09 Message-ID: <38A0E9A3.437D6863@earthlink.net>#1/1 X-Deja-AN: 583513987 Content-Transfer-Encoding: 7bit References: <3880D375.7E363123@hotmail.com> <38829638.0@news.pacifier.com> <3882FC1C.2BA8C959@hotmail.com> <389C4F0D.E5541B98@earthlink.net> X-Accept-Language: en,pdf Content-Type: text/plain; charset=us-ascii X-ELN-Date: Tue Feb 8 20:10:23 2000 X-Complaints-To: abuse@earthlink.net X-Trace: newsread1.prod.itd.earthlink.net 950069423 63.24.56.109 (Tue, 08 Feb 2000 20:10:23 PST) Organization: EarthLink Network, Inc. MIME-Version: 1.0 NNTP-Posting-Date: Tue, 08 Feb 2000 20:10:23 PST Newsgroups: comp.lang.ada Date: 2000-02-09T00:00:00+00:00 List-Id: Brian Rogoff wrote: > Hmmm, I'll have to go back and look, or simply ask you to expand on this, > since from what follows I must have misunderstood your position. The time > I *really* rely on nested procedures is when I'm instantiating a nested > procedure as a parameter of some generic subprogram, and simulating > downward funargs. Its rare that I feel I need them, and probably worse for > me than for some others since it can be argued that I'm programming FP > style in Ada. Exactly. There is nothing "wrong" with ordinary nested procedures. It is just that when you need context or locall declared types, the "right" abstraction is so often a generic instantiation or task entry that a nested procedure has become a red flag to me. Try this. Take some random package body that contains nested procedures, and move all the nested procedures out into the package body. Does the package compile and run just fine? Incidently, if you look through the gnat source, I will probably appear to be the most egregious violators of this rule. (My sins appear in the run-time packages for the IS Annex, in processing Picture strings. However, recursive descent parsers are a very special case...