[fpc-pascal] Records

Carsten Bager carsten at beas.dk
Wed Oct 26 08:08:29 CEST 2005


We are moving a lot of code from an old platform where it is 
allowed to compare 2 records like this.

Type 
  A_typ=array[0..3] of integer; 
Var 
 A1,A2:A_typ; 

Begin 
  If A1=A2 then 
End; 

I know that I can typecast to an array of char to compare but 
is there an easier way.

---

I have never could understand when this is allowed 
A1:=A2; 

Why this is not allowed 
If A1=A2 then 

in most Pascal compilers.  

Regards Carsten 

-- 
Carsten Bager
Bøvlingbjerg El-automatik
Brørupvænget 10
7650 Bøvlingbjerg
Tlf. +4597885222 Fax +4597885434
http://www.beas.dk




More information about the fpc-pascal mailing list