IFY@PSUVM.BITNET (09/16/86)
Has anyone tried to interface Turbo Prolog to MS Fortran using the global predicate specification in Turbo Prolog and the ALIAS option in MS Fortran. I have tried different ways to get Turbo Prolog to pass an integer to MS Fortran and then for the MS Fortran to simply add a constant to it and return it to the Prolog program. The program compiles and appears to execute fine but the numbers are always wrong. Not only are they wrong but no matter what number I have Prolog pass to the Fortran subroutine, it returns the same wrong value regardless. Seems things aren't popping off or being pushed on the stack properly. Any ideas on what is going on and how to remedy this problem? On BITNET: ify at psuvm