On Sun, 15 May 2022 09:03:58 +0200 (CEST) Michael Van Canneyt via fpc-pascal <[email protected]> wrote:
> 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. The RTTI supports it, so it always exists. Mattias _______________________________________________ fpc-pascal maillist - [email protected] https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
