April 27th, 2004, 05:19 AM
Problem with recursive type declaration
I'm new with delphi and I have a problem with a recursive type declaration. Let me give you an example first:
type TNode = record
x, y: integer;
I'm trying to declare a record-type. But because I want to use it in a recursive routine, I try to declare a 'left' variable of the same type.
Delphi doesn't like this. Does anyone know how I can solve this problem?
April 27th, 2004, 12:56 PM
TNodePtr = ^TNode;
TNode = record
x, y : integer;
left : TNodePtr;
Up the Irons
What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home.
"Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest
Down with Sharon Osbourne
"I wouldn't hire a butcher to fix my car. I also wouldn't hire a marketing firm to build my website." - Nilpo
April 29th, 2004, 12:00 PM
I already found it in the help file, but thanks anyway. I apreciate all the help you can give me