[fpc-pascal] TypeInfo on generic templates
Howard Page-Clark
hdpc at talktalk.net
Thu Oct 29 20:03:50 CET 2020
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 - fpc-pascal at lists.freepascal.org
> 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"?
More information about the fpc-pascal
mailing list