[fpc-pascal] Records
Jonas Maebe
jonas.maebe at elis.ugent.be
Wed Oct 26 10:37:01 CEST 2005
On 26 okt 2005, at 10:11, Micha Nelissen wrote:
>> Because you can't simply compare the memory ranges occupied by
>> records A and B. They could have different pad bytes (and bits)
>> but still be the same.
>
> Isn't the number of pad bytes a property of a type ? So when two
> vars are of the same type, they also have the same number of pad
> bytes ?
Yes, but two different variables of the same type could have
different values for those pad bytes. So you have to compare
everything but the pad bytes.
Jonas
More information about the fpc-pascal
mailing list