[fpc-pascal] Element type of set at compile time
Michael Van Canneyt
michael at freepascal.org
Sun May 15 09:03:58 CEST 2022
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.
More information about the fpc-pascal
mailing list