On 29/10/2020 18:27, Ryan Joseph via fpc-pascal wrote:
Is it possible that the TypeInfo intrinsic could work with generic template types or is this a bug? I get "Illegal qualifier" in the procedure below.generic procedure DoThis<T>(a: array of T); begin writeln(TypeInfo(T)^.name); end; Regards, Ryan Joseph _______________________________________________ fpc-pascal maillist - [email protected] https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
What could .name return in this context? "placeholder for an as-yet-unspecialised and unknown type"? _______________________________________________ fpc-pascal maillist - [email protected] https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
