comp.lang.ada
 help / color / mirror / Atom feed
* Error with:   for EntryName use at 16#address#;
@ 2001-11-25  2:14 Jean-David Tr�panier
  2001-11-25  9:01 ` Jerry van Dijk
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Jean-David Tr�panier @ 2001-11-25  2:14 UTC (permalink / 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)





^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2001-11-27 20:41 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-11-25  2:14 Error with: for EntryName use at 16#address#; Jean-David Tr�panier
2001-11-25  9:01 ` 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

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