Hi,
What is the state of published record in fpc trunk?
The structures in typinfo.pp seems to be pretty complete, but fpc complains:
unit1.pas(42,24) Error: This kind of property cannot be published
{$mode delphi}
interface
uses Classes, TypInfo;
type
TMyRec = record
x,y: integer;
e
On Thu, 15 Aug 2024, Mattias Gaertner via fpc-devel wrote:
Hi,
What is the state of published record in fpc trunk?
You cannot publish records, and this is not planned.
This is because things like
MyClass.MyRecord.MyField:=12;
do not work as one would naively expect. It does work if you