[fpc-devel] Additional generic type constraints
Hairy Pixels
genericptr at gmail.com
Sun Feb 19 03:54:30 CET 2023
As a follow up to my other question, why doesn’t FPC support more types for generic type constraints, like Pointer, Integer, String etc...? Especially since we have implicit function specialization now allowing the user to constrain the types more precision would help.
For example my other problem could be resolved if I could constrain to pointer types but this is illegal.
generic procedure Bind<T: Pointer>(value: T);
begin
end;
Regards,
Ryan Joseph
More information about the fpc-devel
mailing list