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=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,a9bbfb8cd49f1a51 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!newshub.sdsu.edu!elnk-nf2-pas!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!stamper.news.atl.earthlink.net!newsread2.news.atl.earthlink.net.POSTED!d9c68f36!not-for-mail From: Marin David Condic User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Isn't this in favour of Ada?? References: <42d64dde$0$64794$edfadb0f@dread12.news.tele.dk> <8764vcdv2f.fsf@deneb.enyo.de> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Date: Mon, 18 Jul 2005 12:37:56 GMT NNTP-Posting-Host: 209.165.22.150 X-Complaints-To: abuse@earthlink.net X-Trace: newsread2.news.atl.earthlink.net 1121690276 209.165.22.150 (Mon, 18 Jul 2005 05:37:56 PDT) NNTP-Posting-Date: Mon, 18 Jul 2005 05:37:56 PDT Organization: EarthLink Inc. -- http://www.EarthLink.net Xref: g2news1.google.com comp.lang.ada:3656 Date: 2005-07-18T12:37:56+00:00 List-Id: I think it would be an improvement for Ada if it had a mechanism for defining its own interrupts and/or attaching them to various system signals. (Something like an exception, but where the handler ends up being a task entry or protected type procedure call) The mechanisms currently in place are typically pretty good for bare-board programming & connecting to some hardware interrupt, but I'd like a mechanism for defining my own. One use would be to isolate a hardware interrupt behind an abstraction so that it can be simulated off of the target machine. If a hardware interrupt were translated to some abstraction like an exception (call it a "signal"?) I could write a "signal handler" the way I write a hardware interrupt handler, but then be able to run it on a PC by writing some low-level simulation code that triggered the "signal" rather than having the hardware interrupt trigger it. MDC Larry Kilgallen wrote: > > I don't know "file descriptor" as an Ada term, but presuming you mean > activity on a file, I would use the VMS Lock Manager requesting an AST > when there is activity (if I were creating an Ada implementation). -- ====================================================================== Marin David Condic I work for: http://www.belcan.com/ My project is: http://www.jsf.mil/NSFrames.htm Send Replies To: m o d c @ a m o g c n i c . r "The Christian ideal has not been tried and found wanting. It has been found difficult; and left untried." -- G. K. Chesterton ======================================================================