home *** CD-ROM | disk | FTP | other *** search
- { -----------------------------------------------------------------------------
-
- NOTICE:
-
- THESE MATERIALS are UNSUPPORTED by OSS! If you do not understand how to
- use them do not contact OSS for help! We will not teach you how to
- program in Pascal. If you find an error in these materials, feel free
- to SEND US A LETTER explaining the error, and how to fix it.
-
- THE BOTTOM LINE:
-
- Use it, enjoy it, but you are on your own when using these materials!
-
-
- DISCLAIMER:
-
- OSS makes no representations or warranties with respect to the contents
- hereof and specifically disclaim all warranties of merchantability or
- fitness for any particular purpose. This document is subject to change
- without notice.
-
- OSS provides these materials for use with Personal Pascal. Use them in
- any way you wish.
-
- -------------------------------------------------------------------------- }
-
-
- PROGRAM ADDRTEST;
-
- {***************************************************************************
-
- program to test function Proc_addr - returns address of a procedure
-
- October 2, 1986 MJC
- Copyright 1986 OSS, Inc.
-
- ***************************************************************************}
-
- FUNCTION Proc_addr( PROCEDURE p ) : Long_Integer;
- EXTERNAL;
-
- PROCEDURE test;
- BEGIN
- writeln( ' hello ' );
- END;
-
- BEGIN
- Writeln( 'Address of PROCEDURE test : ', Proc_addr( test ) );
- END.
-
-