Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Q: script langs that call libs w/o bindings

Name: Anonymous 2007-06-05 11:16 ID:1G226DtK

I read that tinyScheme can call libraries (.dll) without special bindings or other set-up for each library function you call.
Can any of the other script languages that get metioned here, like OCaml, do that?

Name: Anonymous 2007-06-06 17:54 ID:89SPhOJW

ctypes can only `do' stdcall and cdecl calls, so if your c function expects arguments in other format, like Microsoft's fastcall (first two args in ecx and edx, rest on stack), then there is no way to communicate that information to ctypes.
Plus don't expect to use ctypes for performance critical code, like opengl rendering, or what have you.


Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List