From: cp (Charles P. Dolan)

Subject: Re: CLISP foreign functions

Date: 1996-7-8 17:09

At 5:49 PM 7/5/96, faggioli luca wrote:
>Hi everybody, >I'm trying to pass some float values from Common Lisp (Win95) to a some >functions written in VisualC++ and back, but it seams there is a problem >because the value changes when it is passed. >I defined the arguments as "single-float" in the Lisp interface and >"float" in the VisualC++ one and I have this problem ONLY with float >variables. >Does anyone have any idea? >Luca
I have the same problem in ACLPC 3.0. I can gen either a double or a single into a function (tested by doing a calculation), but I can't get a value out. My enentual solution was to retrieve the mantisa and the exponent with separate calls and then reconstruct the float. My hypothesis was that the floating point values are stored differently on the stack than in memory, but I was not able to confirm that theory. Regards -Charlie Dolan