Advertisement
mixster

mixster

Sep 10th, 2010
507
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 0.20 KB | None | 0 0
  1. type meow = procedure();
  2.  
  3. procedure Woof();
  4. begin
  5.   Writeln('Eek!');
  6. end;
  7.  
  8. procedure Ohno(proc: meow);
  9. begin
  10.   Writeln('=O');
  11.   proc();
  12.   Writeln('=D');
  13. end;
  14.  
  15. begin
  16.   Ohno(@Woof);
  17. end.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement