[fpc-pascal] More syntax questions (part 3)
Michael Van Canneyt
michael at freepascal.org
Sun Dec 24 13:50:10 CET 2023
On Sun, 17 Dec 2023, Adriaan van Os via fpc-pascal wrote:
>
>> Another use of UNIV is type-compatibility of procedural parameters. For
>> example with
>>
>> function BinaryFind
>> ( theValuePtr : univ UnivPtr;
>> theFirstIndex : Int32;
>> theLastIndex : Int32;
>> function SmallerThan
>> ( theIndex : Int32;
>> theValuePtr : univ UnivPtr): boolean;
>> function EqualTo
>> ( theIndex : Int32;
>> theValuePtr : univ UnivPtr): boolean;
>> var theFoundIndex : Int32): boolean;
>
> But this kind of procedural parameter doesn't seem to be included in the rule
> for <parameter-declaration>. it is allowed in macpas and iso modes.
I added univ and documented it.
Michael.
More information about the fpc-pascal
mailing list