Forward declaration of records
Original Reporter info from Mantis: adem0x
-
Reporter name:
Original Reporter info from Mantis: adem0x
- Reporter name:
Description:
In the following scenario, forward declaration of records (much like the way with classes) would be very desirable:
type
SomeType1 = record;
SomeType2 = record;
SomeType1 = record
// ...
property SomeProperty: SomeType2 read ... write ...
end;
SomeType2 = record
// ...
property SomeProperty: SomeType1 read ... write ...
end;
To make it clear:
I am not asking for (or expecting) to use forward declarations as record fields --that would alter the size of the record itself before the record is fully defined.
But this feature would be very useful when used in (advanced record's) properties or parameters of functions/procedures/operators.
BTW, in case the description isn't clear, you might like to refer to the discussion in Lazarus forum:
http://free-pascal-lazarus.989080.n3.nabble.com/template/NamlServlet.jtp?macro=reply&node=4029472
http://free-pascal-lazarus.989080.n3.nabble.com/template/NamlServlet.jtp?macro=reply&node=4029504
http://free-pascal-lazarus.989080.n3.nabble.com/template/NamlServlet.jtp?macro=reply&node=4029510
Mantis conversion info:
- Mantis ID: 24425
- Monitored by: » adem0x (adem0x)