Jump to content
Uffe Kousgaard

constant records

Recommended Posts

I am searching for a working syntax (if possible) of a constant, nested record:

 

type
  TPoint = record
    x,y: double
  end;
  TCircle = record
    C: TPoint;
    Radius: double;
  end;

const
  cPointZero: TPoint = (x: 0; y: 0);
  cCircleZero: TCircle = ??
 

cCircleZero should be in (0,0) and have radius 0.

 

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×