Re: [fpc-devel] Forward Record

2024-12-05 Thread Sven Barth via fpc-devel
Amir via fpc-devel schrieb am Do., 5. Dez. 2024, 00:57: > I wonder why? Is there any technical difference between classes and > records for the purpose of forward declaration? > Yes, there is. Classes are implicit pointer types, thus when you have a field that is of type class then it's size w

[fpc-devel] Forward Record

2024-12-04 Thread Amir via fpc-devel
Hi,   I have a use-case where I needed to forward declare some records. The FPC documentation says "Note that a forward type declaration is only possible with pointer types and classes, not with other types".   I wonder why? Is there an