Advertisement
Guest User

Untitled

a guest
Jan 24th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ada 0.48 KB | None | 0 0
  1. with Ada.Text_IO; use Ada.Text_IO;
  2.  
  3. procedure World is
  4.    
  5.     protected type Naprawa is
  6.         entry FixWorld;
  7.     end Naprawa;
  8.  
  9.     protected body Naprawa is
  10.         entry FixWorld when true is
  11.         begin
  12.             Put_Line("Swiat jest znow pieknym miejscem");
  13.         end FixWorld;
  14.     end Naprawa;
  15.  
  16. N: Naprawa;
  17. begin
  18.    
  19.     select
  20.         N.FixWorld;
  21.     or
  22.         delay 5.0;
  23.         Put_Line("Nie da sie naprawic swiata");
  24.     end select;
  25.  
  26. end World;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement