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!feeder.eternal-september.org!gandalf.srv.welterde.de!news.jacob-sparre.dk!loke.jacob-sparre.dk!pnx.dk!.POSTED!not-for-mail From: Jacob Sparre Andersen Newsgroups: comp.lang.ada Subject: Re: Problems with SPARK 2015 and XMLAda Date: Thu, 20 Aug 2015 09:10:44 +0200 Organization: JSA Research & Innovation Message-ID: <87mvxmjuyz.fsf@adaheads.sparre-andersen.dk> References: <6952b70d-a9bc-4d0a-beb5-1cd38d6a3318@googlegroups.com> NNTP-Posting-Host: 109.56.17.211.mobile.3.dk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: loke.gir.dk 1440054644 27597 109.56.17.211 (20 Aug 2015 07:10:44 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Thu, 20 Aug 2015 07:10:44 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) Cancel-Lock: sha1:UubB9iIbE41faQFSyjHQs4YDt88= Xref: news.eternal-september.org comp.lang.ada:27521 Date: 2015-08-20T09:10:44+02:00 List-Id: Serge Robyns wrote: > Sadly I quickly abandoned SPARK [...] > And I know many other things SPARK doesn't like, like exceptions [...] One important purpose of SPARK is to avoid exceptions completely, so yes. > or access types. Yes. Proving a program using access types to be correct is rather difficult. > So I guess it must dislike the standard containers too. Yes, but there are containers for SPARK too. In general, you can't use much of the *Ada* standard libraries with SPARK, as they aren't annotated for correctness proofs. If you want to program in SPARK, you shouldn't try to write Ada, and then just run a tool, when you're done. You should read the SPARK LRM (or a textbook on SPARK), and understand the language. Greetings, Jacob -- "I have no prejudice except against Pakistanis, which is normal."