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!news.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: "J-P. Rosen" Newsgroups: comp.lang.ada Subject: Re: GNAT and user-defined aspects and pragmas? Date: Fri, 13 Nov 2015 11:03:55 +0100 Organization: A noiseless patient Spider Message-ID: References: <87h9ku2dcp.fsf@adaheads.sparre-andersen.dk> <87d1vg3mvm.fsf@adaheads.sparre-andersen.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit Injection-Date: Fri, 13 Nov 2015 10:01:39 -0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="45bffd6a911624777cad79aac3181090"; logging-data="24076"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19fStwXU++rcuZwOIjH6cPo" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 In-Reply-To: Cancel-Lock: sha1:X78ME6AdswZWPp/wBad2yLY2ZII= Xref: news.eternal-september.org comp.lang.ada:28357 Date: 2015-11-13T11:03:55+01:00 List-Id: Le 12/11/2015 20:24, Randy Brukardt a écrit : >> With your interpretation, we wouldn't be able to compile SPARK 2014 >> > programs with anything but GNAT - even when some of AdaCore's >> > competitors release an Ada 2012 compiler. > Definitely. Since the SPARK aspects include some additional syntax, I can't > see any way that it would be possible for a compiler that doesn't know about > SPARK (say Janus/Ada) to compile a SPARK program. To the extent that SPARK > annotations aren't significant to the semantics of the program, they > probably should have been pragmas. But since AdaCore doesn't > understand/believe in the difference, you'll have to remove them. That > should be easy with a tool (it's a simple syntax transformation). [Of > course, someone has to write the tool.] Count me in! (i.e.: I am preparing a new release of AdaSubst; adding that feature would be really easy). -- J-P. Rosen Adalog 2 rue du Docteur Lombard, 92441 Issy-les-Moulineaux CEDEX Tel: +33 1 45 29 21 52, Fax: +33 1 45 29 25 00 http://www.adalog.fr