[fpc-pascal] Procedural parameters

Sven Barth pascaldragon at googlemail.com
Sun Dec 15 17:09:58 CET 2024


Am 14.12.2024 um 07:35 schrieb Adriaan van Os via fpc-pascal:
>
> Macpascal and Iso pascal have procedural parameters, e.g.
>
>     function A( function B: double): double;
>
> Is there a $modeswitch to allow this ? I searched "procedure 
> parameter" and "procedural parameter" in the Language Reference, but 
> could not find anything.

The modeswitch for this is NESTEDPROCVARS.

Regards,
Sven


More information about the fpc-pascal mailing list