Re: [fpc-devel] Published record

2024-08-18 Thread baldzhang via fpc-devel
you may try this: TSomeObjToSerial = class(TPersistent) private FPoint: TPoint; public property Point: TPoint read FPoint write FPoint; published property PointX: Integer read FPoint.x write FPoint.x; property PointY: Integer read FPoint.y write FPoint.y; end; not tested by compiler, bu

Re: [fpc-devel] Published record

2024-08-18 Thread Michalis Kamburelis via fpc-devel
Thank you -- this is excellent information, both RTTI for records and lazarus/components/jitclasses/ . So I really have all the puzzle pieces I need :) I have recorded a TODO to handle it all in https://castle-engine.io/roadmap#records_rtti . Regards, Michalis niedz., 18 sie 2024 o 10:49 Michael

Re: [fpc-devel] Published record

2024-08-18 Thread Michael Van Canneyt via fpc-devel
On Sat, 17 Aug 2024, Michalis Kamburelis wrote: Thanks Michael! OK, that's partially good news :) I understand that streaming records by default to LFM would lead to too many questions (and I'm unsure whether Delphi does it too, for records and DFM). It does not. Streaming has not change