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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 2002:a24:2782:: with SMTP id g124mr3838385ita.137.1558442679355; Tue, 21 May 2019 05:44:39 -0700 (PDT) X-Received: by 2002:aca:51d5:: with SMTP id f204mr2253252oib.78.1558442679164; Tue, 21 May 2019 05:44:39 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!news.uzoreto.com!2.eu.feeder.erje.net!4.us.feeder.erje.net!feeder.erje.net!feeder.usenetexpress.com!feeder-in1.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!i64no169877iti.0!news-out.google.com!l135ni224itc.0!nntp.google.com!u76no169259ita.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Tue, 21 May 2019 05:44:38 -0700 (PDT) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=158.110.245.106; posting-account=9fwclgkAAAD6oQ5usUYhee1l39geVY99 NNTP-Posting-Host: 158.110.245.106 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <9ad71ff8-71c6-436c-9a56-f9637565d99a@googlegroups.com> Subject: How to put main procedure in SPARK_Mode? From: mockturtle Injection-Date: Tue, 21 May 2019 12:44:39 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Xref: reader01.eternal-september.org comp.lang.ada:56354 Date: 2019-05-21T05:44:38-07:00 List-Id: Dear.all, this is really a silly questions, but I am stumped... I am fooling around with SPARK (I always wanted to learn to use it) and I w= ant to put the "main" procedure (that is in a body file of its own) in SPAR= K_Mode, but with no success so far. =20 I tried many things including (but not limited to :-)) =20 * Using Pragma SPARK_Mode (with and without "On") at the beginning of the f= ile * Using Pragma SPARK_MODE after the "is"=20 * Using=20 procedure Main with SPARK_Mode =3D> is .... and other variations that I do not remember. The only way I was able to put the procedure in SPARK mode is by putting it= into a package, but in this way it cannot be the "main" (right?). I solve= d the problem by having a microscopic main procedure whose only action is t= o call the true main in the package, but it seems to me less than ideal...= =20 Any suggestions? Thank you in advance Riccardo