apostolchopov
Programmer
Hi, guys!
Can you, please, tell me how to declare objects in Delphi without having the compiler error message '... is not yet completely defined'?
I tried to declare a class A, then to use it the declaration of another class B and, actually, after this put down the actual declaration of class B. In some cases it worked perfectly well, in other cases it does not work.
For instance:
type A = class;
B = class(TObject)
constructor Create;
function GetAnA : A;
...
end;
A = class(TObject)
constructor Create;
...
end;
Can you, please, tell me how to declare objects in Delphi without having the compiler error message '... is not yet completely defined'?
I tried to declare a class A, then to use it the declaration of another class B and, actually, after this put down the actual declaration of class B. In some cases it worked perfectly well, in other cases it does not work.
For instance:
type A = class;
B = class(TObject)
constructor Create;
function GetAnA : A;
...
end;
A = class(TObject)
constructor Create;
...
end;