On Thu, 12 Aug 2010 07:55:23 pm Andrew Gregory wrote:
My work involves a lot of data processing, for which I use Python scripts from which I can call functions coded in Pascal (and other languages).
I'm very interested to read this, because writing Python extensions in Pascal is in my To Do list.
The interfacing works as follows: Pascal modules are linked statically to some C interface code (which converts Python objects to/ from C types). The C interface code is compiled to Python compatible DLLs, which can be imported directly into Python.
I don't suppose you could point me to a walk-through or beginner's tutorial? I haven't done any serious Pascal programming since the late 1980s using THINK Pascal on the Apple Mac, and so I've missed out on much of the Pascal-to-C linking stuff.
Thanks,