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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Full view of a private partial view cannot be a subtype Date: Sun, 03 Dec 2017 18:50:41 +0000 Organization: A noiseless patient Spider Message-ID: References: <889a3aed-4e6b-49c8-8c1c-6f1478e8e077@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: reader02.eternal-september.org; posting-host="d6b1ecf9a87ebe062b8e601edd31a8f8"; logging-data="5401"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+tkplaPxfp2fFAms3lk7z6qDrH1gtj61o=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (darwin) Cancel-Lock: sha1:+BAiaaIuHiKg6GL5cny9DscyWWo= sha1:2jdeUap38V2fB9m4xz8Jj7PeAfE= Xref: reader02.eternal-september.org comp.lang.ada:49334 Date: 2017-12-03T18:50:41+00:00 List-Id: Robert Eachus writes: > Several decades ago, there was a fun paper: "Nesting in Ada is for the > birds." by Lori Clarke > et. al. https://dl.acm.org/citation.cfm?id=948651 Interesting! My own (subconscious) guidelines mean nesting is almost absent; for a start, most subprograms are fairly small. It always worries me when a nested subprogram makes uplevel references to its parent's variables. I imagine that most of us would regard a main program all of whose called subprograms were nested inside it (recursively) with horror. That said, completely forbidding declare blocks is going a step too far!