Procedural types_(re)
Sun, 8 Jun 1997 20:06:55 +0200 (MET DST)
According to Bernhard Tschirren:
>
> The GPC procedural types do not allow VAR parameters! I looked through all
> the documentation but couldn't find any way of doing it - other than using
> pointers.
You mean: *Pointers* to procedures like implemented in gpc-2.0- don't allow
`Var' parameters. Recent alpha versions allow both pointers to procedures
with `Var' parameters as well as BP-stype "procedural variables":
Type
MyProc = Procedure ( Var x: Real );
MyProcPtr = ^Procedure ( Var x: Real ); (* `Var' parameter *)
Greetings,
Peter
Dipl.-Phys. Peter Gerwinski, Essen, Germany, free physicist and programmer
peter.gerwinski@uni-essen.de - http://home.pages.de/~peter.gerwinski/ [970201]
maintainer GNU Pascal [970510] - http://home.pages.de/~gnu-pascal/ [970125]
Peter Gerwinski (peter@agnes.dida.physik.uni-essen.de)
HTML conversion by Lluís de Yzaguirre i Maura
Institut de Lingüística Aplicada -
Universitat "Pompeu Fabra"
e-mail: de_yza@upf.es