[fpc-pascal] Feature announcement: implicit generic function specializations

Michael Van Canneyt michael at freepascal.org
Fri Apr 22 08:31:10 CEST 2022



On Fri, 22 Apr 2022, Hairy Pixels via fpc-pascal wrote:

> If you want to pass a pointer to ^T in a generic function is there anyway safe to do this currently? 
> Pascal doesn’t allow ^ types in function arguments (why?)

Because it is a type definition and you can't put type definition in a
function declaration. e.g. function b (a : record x,y : byte end) : byte;
also does not work.

Michael.


More information about the fpc-pascal mailing list