In Macpas mode, you can specify a UNIV (universal) parameter. This signifies that any parameter with the exact same byte size as the declared parameter can be passed as the value of the parameter: Given the following procedure declaration:
You can pass value of any type that has the same size as Handle.
This comes in especially handy for typed procedures. Given the following definition:
You can call Find as follows
Where the two functions IsSmallerThan and IsEqualTo are defined as:
Because PtrInt has the same size as Pointer, this will compile.