home *** CD-ROM | disk | FTP | other *** search
- type
-
- string32 = string[32];
-
- Proc = procedure( aa: integer; bb: real; cc : string;
- var a : integer; var b : real; var c : string32 );
-
-
- XYZ = object
- a : integer;
- b : real;
- c : string32;
- init : Proc;
- end;
- {$F+}
- procedure Init( aa : integer; bb : real; cc : string;
- var a : integer; var b : real;
- var c : string32 );
- begin
- a := aa;
- b := bb;
- c := cc;
- end;
- {$F-}
-
- var
- R : XYZ;
-
- begin
-
- R.Init := Init;
- R.Init( 1234, 2.71, 'This is a test', R.a, R.b, R.c);
- writeln( 'The integer value is ', R.a );
- writeln( 'The string value is "', R.c, '"' );
- writeln( 'The real value is ', R.b );
-
- end.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-