Am 29.04.2021 um 20:14 schrieb Ryan Joseph via fpc-pascal:
Is this a bug in properties and I should be getting an error?
type
TPixel = record
components: array[0..3] of byte;
property R: byte read components[10] write components[10];
end;
Well, there should *at least* be a warning and an error if range checks
are enabled... Please file a bug report.
Regards,
Sven
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal