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:ac8:4e0f:: with SMTP id c15mr2345854qtw.211.1588318276437; Fri, 01 May 2020 00:31:16 -0700 (PDT) X-Received: by 2002:aca:dfc5:: with SMTP id w188mr2131043oig.7.1588318276070; Fri, 01 May 2020 00:31:16 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!news.gegeweb.eu!gegeweb.org!usenet-fr.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Fri, 1 May 2020 00:31:15 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: google-groups.googlegroups.com; posting-host=2a02:1206:4544:3750:d191:f0db:7adf:ce6a; posting-account=gRqrnQkAAAAC_02ynnhqGk1VRQlve6ZG NNTP-Posting-Host: 2a02:1206:4544:3750:d191:f0db:7adf:ce6a References: <9a4ad55c-ef0d-42ab-a438-cabc71a491a6@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <34a44b75-02ca-43bc-b5cf-04a0a758db88@googlegroups.com> Subject: Re: Script-like jobs in Ada (ideas for HAC) From: gautier_niouzes@hotmail.com Injection-Date: Fri, 01 May 2020 07:31:16 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Xref: reader01.eternal-september.org comp.lang.ada:58536 Date: 2020-05-01T00:31:15-07:00 List-Id: On Thursday, April 30, 2020 at 10:44:22 AM UTC+2, Dmitry A. Kazakov wrote: > 1. Where are the modules? It should be possible to write a module for=20 > the script e.g. a package that has functions and procedures, which call= =20 > to Ada implementations. I.e. calling Ada from the script. On the to-do list :-) > 2. What about exceptions handling, the ones propagating out of the=20 > script into the Ada caller? Same, but this is a lower-hanging fruit: the VM has error states that could= be grouped into an exception_raised state, which would trigger the expecte= d behaviour (with an exception identity and message). If the exception is n= ot handled from the VM, the VM interpreter would raise Unhandled_HAC_Except= ion with a message. > 3. Aborting the script. Ideally the Interpret_on_Current_IO you=20 > mentioned must be abortable per some event set via protected object, for= =20 > example. E.g. from another task provided Interpret_on_Current_IO runs on= =20 > the caller's context. The interpreter will look for the event=20 > periodically and propagate exception Canceled_Error if the event is set. I add this to the to-do list right now, thanks!