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=0.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,1096a7986b560ad6 X-Google-Attributes: gid103376,public From: kilgallen@eisner.decus.org (Larry Kilgallen) Subject: Re: In Exception ? Date: 1998/04/10 Message-ID: <1998Apr10.073734.1@eisner>#1/1 X-Deja-AN: 342721335 X-Nntp-Posting-Host: eisner.decus.org References: <35214b7a.0@news.profinet.at> <6g7fpc$l08$1@usenet.rational.com> <6gcjru$7im@drn.newsguy.com> <352D0231.E98A0106@elca-matrix.ch> <6gkafp$p31@drn.newsguy.com> X-Trace: news.decus.org 892208259 5899 KILGALLEN [192.67.173.2] Organization: LJK Software Reply-To: Kilgallen@eisner.decus.org.nospam Newsgroups: comp.lang.ada Date: 1998-04-10T00:00:00+00:00 List-Id: In article <6gkafp$p31@drn.newsguy.com>, nabbasi@earthlink.net writes: > Now, as I said, I did not know if one can associate an Ada procedure with > a system interrupt. i.e. in the VMS example, I do not know if one can > make a VMS system service from Ada and pass an address of an Ada procedure > to be called as an AST (say when the IO is completed). Since certainly > one can call VMS system services from Ada (there is an Ada binding for > that), I would think one can also do the above in Ada, but it been long > time since I played on VMS so I can be wrong. One can, indeed, do that, but DEC Ada recommends another approach. > This sort of thing on VMS is not uncommon (programming with AST's), and it is > flexible also, but needs careful programming to avoid problems with > synchronizations between normal flow of code, and the AST flow of code. A special AST_ENTRY construct allows the DEC Ada programmer to specify an AST routine, but have that routine executed in normal (non-AST) mode sometime after the AST fires. This allows use of the AST mechanism in concert with the synchronization rules of the Ada language. Larry Kilgallen