comp.lang.ada
 help / color / mirror / Atom feed
From: "Jean-David Tr�panier" <JDT@hy.cgocable.ca>
Subject: Error with:   for EntryName use at 16#address#;
Date: Sat, 24 Nov 2001 21:14:45 -0500
Date: 2001-11-24T21:14:45-05:00	[thread overview]
Message-ID: <SwYL7.8837$qw1.2054447@weber.videotron.net> (raw)

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 843 bytes --]

Hi! I have a little problem for handling an interrupt. I receive this error
at the compilation of the code below:  Expression has no possible
interpretation as an expression of the expected type Address, Continuing



   with Text_IO; with System;
   procedure main is
--------TASK-----------
     task TKeyboard is
         entry keyp;
         for Keyp use at 16#20#;       -- Error at this line
     end TKeyboard;

     task body TKeyboard is
     begin
         loop
         accept keyp do
               text_io.put_line("Keypressed (numlock)");
         end keyp;
         end loop;
    end TKeyboard;
------END TASK---------

 begin
      ...
 end main;

Is it a good way to handle interrupt or it's preferable to use
Attach_Handler(Handler, Int_ID) in the interrupt package.

Thanks,

Jean-David Tr�panier
(JDT@hy.cgocable.ca)





             reply	other threads:[~2001-11-25  2:14 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-11-25  2:14 Jean-David Tr�panier [this message]
2001-11-25  9:01 ` Error with: for EntryName use at 16#address#; Jerry van Dijk
2001-11-26  2:58 ` Nick Roberts
2001-11-27  4:04 ` Robert Dewar
2001-11-27 14:02 ` Stephen Leake
2001-11-27 19:26   ` Louis Granger
2001-11-27 20:41     ` Jerry van Dijk
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox