[fpc-pascal] generic way of writing Sets or Enum values to a String

Jonas Maebe jonas.maebe at elis.ugent.be
Tue Sep 6 19:40:16 CEST 2016


Graeme Geldenhuys wrote:
> Is there a way to have a single implementation of Enum-to-String

system.str() also works for enums in FPC. For sets, you can use a for-in
loop that calls str(). If you want to encapsulate it in a function,
you'll have to use a generic function probably.


Jonas



More information about the fpc-pascal mailing list