[plt-scheme] foreign: am I missing something basic?

From: Noel Welsh (noelwelsh at gmail.com)
Date: Sun Sep 27 07:59:33 EDT 2009

On Thu, Sep 24, 2009 at 3:15 AM, Dave Herman <dherman at ccs.neu.edu> wrote:
>    (define peek-inside
>      (get-ffi-obj 'peek_inside lib (_cprocedure (list _scheme) _short)))

An idiomatic definition would be:

(_fun _scheme -> _short)

instead of your _cprocedure definition.

Perhaps the issue is one of calling conventions?  I know Windows uses
the "Pascal" (stdcall?) calling convention for it's libraries. Perhaps
shared libraries are automatically defined with this convention?


Posted on the users mailing list.