Hi,
<snip>
Out of curiosity, what kind of application is this where you have to compare more than 600 different record types for equality?
It is a complete integrated solution for the travel industry. The oldest code parts are from 1985, and it is still in development for new functionalities.
In my whole code base, I probably have just a handful of such cases (which I do field by field then).
In fact, I don't have to compare all the record types (I hope so!). I just encountered the first case yesterday during the conversion process, and I realized I missed this one in my gap analysis between SUN and GNU Pascal.
<snip>
How carefully have you tested it? Did you try global, local and heap-allocated variables? Did you intentionally garbage-fill the memory used before allocating the records (not applicable to global ones, but to local and dynamic ones, with some tricks)?
No, I did not check extensively. Since the SUN Pascal Manual says the records can be compared, I just dumped some to see how they were laid out. Perhaps SUN does field by field comparison, I don't know.
Anyway, I will create = and <> operators only for the records implied in comparisons.
Regards
Pascal Viandier pascal@accovia.com