On 21/10/2020 21:34, Ryan Joseph via fpc-pascal wrote:
I thought default would just return the first value in the enum but I guess 
it's just zeros. Maybe we need a better default for objfpc mode.
The first element is returned by Low(TEnum), and the first value by Ord(Low(TEnum)).

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to