On Sun, 15 May 2022, Hairy Pixels via fpc-pascal wrote:
Is there a compiler intrinsic to get the element type of a set at compile time?
So if you have “set of T” it should return T.
I don't think you can make such an intrinsic.
This type does not always exist, since you can define
Type
TMySet = set of (one,two,three);
The element type does not exist as a separate type.
Michael.
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal