On 21/10/2020 22:46, Ryan Joseph via fpc-pascal wrote:
>> On Oct 21, 2020, at 2:43 PM, Jonas Maebe via fpc-pascal 
>> <fpc-pascal@lists.freepascal.org> wrote:
>>
>> I tried to explain in the rest of my message why that cannot be done. It
>> might be possible in some cases, but that would just create a false
>> sense of security and unpredictable results (because no compile-time
>> range checking is possible for variant records).
> Not even for enums? I get that records should just return zero'd memory but 
> enums seem to be a special case.

A record field whose type is an enum should be handled exactly the same
as an individual enum.


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

Reply via email to