I've been following the debate with some interest - although I'm no expert on compilers.
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).
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'm sure there are other ways to achieve the same end (and it would be nicer to be able to do the conversion to/from Python objects in Pascal) - but it works. I use the MinGW compiler to compile my code. The extensions work with the standard (MSVC) Python distribution.
As long as there is a straightforward means of creating Python binary extensions from Pascal source code I'll be happy - but since Python is written in C the C++ solution sounds more promising, so I will vote for that.
Andrew.
http://www.npl.co.uk/materials/ http://www.npl.co.uk/electromagnetic/
------------------------------------------------------------------- This e-mail and any attachments may contain confidential and/or privileged material; it is for the intended addressee(s) only. If you are not a named addressee, you must not use, retain or disclose such information.
NPL Management Ltd cannot guarantee that the e-mail or any attachments are free from viruses.
NPL Management Ltd. Registered in England and Wales. No: 2937881 Registered Office: Serco House, 16 Bartley Wood Business Park, Hook, Hampshire, United Kingdom RG27 9UY -------------------------------------------------------------------