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!feeder.eternal-september.org!nntp-feed.chiark.greenend.org.uk!ewrotcd!newsfeed.xs3.de!io.xs3.de!news.jacob-sparre.dk!franka.jacob-sparre.dk!pnx.dk!.POSTED.109.59.179.98.mobile.3.dk!not-for-mail From: Jacob Sparre Andersen Newsgroups: comp.lang.ada Subject: Re: body stub not allowed in inner scope Date: Thu, 01 Mar 2018 21:52:03 +0100 Organization: JSA Research & Innovation Message-ID: <87tvtzv7rg.fsf@jacob-sparre.dk> References: <55cd79f5-4b37-4b08-b292-073ed2f37021@googlegroups.com> <15c49c4e-726a-4fd7-bf35-c7d27ff9a491@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: franka.jacob-sparre.dk; posting-host="109.59.179.98.mobile.3.dk:109.59.179.98"; logging-data="19283"; mail-complaints-to="news@jacob-sparre.dk" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) Cancel-Lock: sha1:AVkdnskJhrADJyTZKyYG4hKDKX4= Xref: reader02.eternal-september.org comp.lang.ada:50769 Date: 2018-03-01T21:52:03+01:00 List-Id: Simon Wright writes: > Randy Brukardt writes: > 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. This sounds rather similar to some work I've done for Consafe Logistics last year. I wrote a code generator, which compiles Swagger/OAS specifications of REST interfaces into packages declaring the services and the types used. The actual service implementations are made separate, to have the optimal separation of developer-written and tool-written Ada code. Greetings, Jacob -- recursive, adj.; see recursive