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: body stub not allowed in inner scope Date: Thu, 01 Mar 2018 08:24:55 +0000 Organization: A noiseless patient Spider Message-ID: References: <55cd79f5-4b37-4b08-b292-073ed2f37021@googlegroups.com> <15c49c4e-726a-4fd7-bf35-c7d27ff9a491@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: reader02.eternal-september.org; posting-host="4cc54f234a1bf931e5c37fdebf83263c"; logging-data="2078"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19pieIPSIntgtsvXTNBZ0sDvj3GS27S6C0=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (darwin) Cancel-Lock: sha1:C3RflkuUUZuijmb6RYV6v2j0iL0= sha1:SASz8T5MyBF82hlgThNjngUysi8= Xref: reader02.eternal-september.org comp.lang.ada:50735 Date: 2018-03-01T08:24:55+00:00 List-Id: "Randy Brukardt" writes: > Does anyone other than ACATS tests actually use stubs these days? Why? My use case for stubs is that I have a code generator that transforms a UML model into the framework of an Ada solution; subprograms, task and protected type bodies are generated as separates, so that there's no hassle with having the tool work out how not to overwrite the real bodies. This was triggered by bad experiences with Rational Rose back in 2000. I have to admit that the only commercial project that I'm aware of that uses this tool is (if any work is being done at all) in very low-level long term maintenance, and (on past evidence) supremely unlikely to be interested in upgrading to a new Ada standard. [I have one separate package body of 300 lines - to reduce clutter in a package body that was already 260 lines. Even if emacs ada-mode would now be able to fold it, it certainly couldn't then!]