steven.borley wrote:
In ISO Pascal Trunc is a predefined function that returns an integer value. It is an error if the result value of Trunc doesn't exist in the Integer type. The fp.pas unit of Appleās PInterfaces declares a trunc function that returns a value of type Double_t.
To solve this ambivalence, the trunc function in fp.pas has been renamed to truncd.
</quote>
So this looks like the same problem as I have with Round(), but with a different solution. So I'm now beginning to think think this is a GPCPInterfaces bug (or at least inconsistency). Should round() in fp.pas not have been renamed roundd() for the same reasons?
Yes, this was reported before - on the maccompiler mailing list. We decided to change "round" in fp.pas to "roundd". Then - we completely forgot about it. Peter, can we make a change in the interfaces script now, so that it will be included in the next release ?
Regards,
Adriaan van Os