help with this classes mess...
From: Hmmm (forums_at_mail.bg)
Date: 05/30/04
- Previous message: Alistair George: "Re: Mailto in text"
- Next in thread: Rob Kennedy: "Re: help with this classes mess..."
- Reply: Rob Kennedy: "Re: help with this classes mess..."
- Reply: J French: "Re: help with this classes mess..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 29 May 2004 16:34:53 -0700
I want to create a hierarchy (or something) but i fall into this
situation:
TA = class
C: TC
end;
TB = class
A: TA;
end;
TC = class
B: TB;
end;
TC - the type of C field of class TA if "Undeclared identifier"
because it is declared below declaration of class TA.
If this was function declarations, the "forward" directive is the
solution of this problem, but what about classes?...
...one solution is this
TCParent = class
end;
TA = class
C: TCParent
end;
TB = class
A: TA;
end;
TC = class(TCParent)
B: TB;
end;
...is there anything else?
- Previous message: Alistair George: "Re: Mailto in text"
- Next in thread: Rob Kennedy: "Re: help with this classes mess..."
- Reply: Rob Kennedy: "Re: help with this classes mess..."
- Reply: J French: "Re: help with this classes mess..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|