[fpc-pascal] Enum range check error

Howard Page-Clark hdpc at talktalk.net
Wed Oct 21 22:44:24 CEST 2020


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)).



More information about the fpc-pascal mailing list