[fpc-devel] Additional generic type constraints

2023-02-18 Thread Hairy Pixels via fpc-devel
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 prob

[fpc-devel] Issue with implicit function specialization

2023-02-18 Thread Hairy Pixels via fpc-devel
The function Bind is specialized with two types which are identical (TState) and the compiler can’t determine which to call. Is there anyway to resolve this? In my mind I want the more “explicit” overload with the var parameter but there’s really no way for the compiler to know this, that I ca