[lazarus] FPC question,complex forward records?
Florian Klaempfl
Florian.Klaempfl at gmx.de
Thu Oct 10 16:20:56 EDT 2002
At 22:11 10.10.2002, you wrote:
>I am trying to port IDL.h, as it is required by some other libs, and I
>found out that doing the way I have been is going to be somethings of a
>nightmare. Most of the records use TIDL_tree_node, which uses everything..
>aka curcular reference. The way they get around this in the c Header is
>with a forward declaration of TIDL_tree_node. Is it possible to do this in
>FPC as well? something like -
>
> TIDL_tree_node = record;
>
>and then re-declare it later in the file?
No, because you've to know the size when you use it.
>With classes this is easy but I am rather stumped on how to do this for
>record.
Can you send the me the idl.h or/and .pp, then I'll look for a solution.
More information about the Lazarus
mailing list