Frank Heckenbach wrote:
Adriaan van Os wrote:
In the case of more common functions such as trig stuff, does fp.p override the Pascal built-ins?
If they have the same name and (in case of routines declared in gpc.pas) you import your module after gpc.pas, then yes.
We took some care to circumvent conflicts in the Mac interfaces, e.g. we disabled the 'pow' keyword
Did you do it just to be sure, or were there actually problems when not doing so (and overriding `pow')?
I see it is not strictly necessary, the following works.
program testpow; function pow(x: double; y: double): double; external name 'pow'; begin writeln( pow( 1.2, 3.4)) end.
I can't remember if there were actual compiler problems when we did the port to GPC or that it was added just to be sure or that it was done because of a lack of understanding of gpc.
Regards,
Adriaan van Os