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=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,34e28efa1a88ae84 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news2.google.com!news.glorb.com!feeder.erje.net!newsfeed01.sul.t-online.de!newsfeed00.sul.t-online.de!t-online.de!peer-uk.news.demon.net!kibo.news.demon.net!news.demon.co.uk!demon!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Access procedure to pointer Date: Wed, 28 May 2008 18:00:06 +0100 Organization: Pushface Message-ID: References: <483C48B5.9060303@gmail.com> <483D209D.5010408@gmail.com> NNTP-Posting-Host: pogner.demon.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: news.demon.co.uk 1211994006 20524 62.49.19.209 (28 May 2008 17:00:06 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Wed, 28 May 2008 17:00:06 +0000 (UTC) Cancel-Lock: sha1:lUDzp/H+OmCSpTjX4efRMRcosWc= User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (darwin) Xref: g2news1.google.com comp.lang.ada:429 Date: 2008-05-28T18:00:06+01:00 List-Id: Jean-Pierre Rosen writes: > S�bastien a �crit : > >> type Signal is (SIGHUP); >> for Signal use (SIGHUP => 1); >> >> type Signal_Callback is access procedure(sig: Signal); >> >> procedure InterceptSignal(sig: in Signal; callback: in Signal_Callback); >> >> procedure c_signal(sig: in Signal; callback: in System.Address); >> pragma Import(C, c_signal, "signal"); >> > Why don't you simply use Ada.Interrupts? Perhaps because interrupts are not signals? (of course GNAT maps signals to interrupts for 'complex' targets eg Linux, Windows and I believe Mac OS X, but on VxWorks interrupts are interrupts and signals are another matter altogether!)