Re: [fpc-pascal]Defining Records on the fly:

2004-02-17 Thread Jon D. Sawyer
Here is why I was wondering why you couldn't, say I have this type: Type tMyRec = Record X, Y : Real; End; And I have this function: Function CheckPoint(aPoint: tMyRec): Boolean; Begin {Does something here..} end; begin CheckPoint((X:1.2;Y:2.2)); end. In short I think it would be a nifty fe

Re: [fpc-pascal]Defining Records on the fly:

2004-02-16 Thread Shawn Tan Ser Ngiap
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Monday 16 February 2004 00:40, Jon D. Sawyer wrote: > Const ARec : tMyRec = (X:12; Y:25); > > why can't I do this? > > var > AnotherRec: tMyRec; > begin > AnotherRec := (X:12; Y:25); It's just the way the language is... you could do this... A